On Friday 15 January 2010 06:47:24 Karel Zak wrote: > On Thu, Jan 14, 2010 at 10:42:51PM -0500, Mike Frysinger wrote: > > Some mount helpers may live in /usr/sbin, so rewrite the helper function > > check_special_mountprog() to work off a list of paths. Now the default > > search path is /sbin and /usr/sbin, and it should be easy to extend to > > other locations as well. > > Oh, Mike... this is never ending story :-) > > I know only one elegant solution for situations when people have > different points of view -- let's make it configurable... > > > Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx> > > --- > > 84 insertions(+), 67 deletions(-) > > > > diff --git a/mount/mount.c b/mount/mount.c > > index 0cef101..5be6087 100644 > > --- a/mount/mount.c > > +++ b/mount/mount.c > > @@ -631,6 +631,8 @@ do_mount (struct mountargs *args, int *special, int > > *status) { return ret; > > } > > > > +#define MOUNT_SEARCH_PATH "/sbin:/usr/sbin" > > This should be defined by > > ./configure --with-mount-path=<list> > > where the default is "/sbin". Is it acceptable compromise? i started to do that, but this was easier and figured i wouldnt bother if it was accepted ;) -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.