On Tue, Nov 13, 2001 at 10:53:16PM +1300, Mark van Walraven wrote: > Dear list, > > partition_config::mount_partition() uses mode 01777 when creating /tmp > as a mount-point, but doesn't for /target/var/tmp. A fix is:
what good will this do? the permissions of the mount point directory are irrelevant as they will be replaced by the permissions of the root directory of the mounted filesystem. > Index: boot-floppies/utilities/dbootstrap/partition_config.c > =================================================================== > RCS file: /cvs/debian-boot/boot-floppies/utilities/dbootstrap/partition_config.c,v > retrieving revision 1.116 > diff -u -r1.116 partition_config.c > --- boot-floppies/utilities/dbootstrap/partition_config.c 2001/11/11 01:00:33 > 1.116 > +++ boot-floppies/utilities/dbootstrap/partition_config.c 2001/11/13 09:36:48 > @@ -572,7 +572,9 @@ > while (1) { > if ((p = strchr(p + 1, '/')) != NULL) > *p = '\0'; > - WithMode = strcmp(real_mount_point,"/target/tmp") ? 0755 : 01777; > + WithMode = strcmp(real_mount_point,"/target/tmp") && > + strcmp(real_mount_point,"/target/var/tmp") > + ? 0755 : 01777; > DEBUGMSG("making mount point %s", real_mount_point); > if (! mkdir(real_mount_point, WithMode)) { > chmod(real_mount_point, WithMode); > > Regards, > > Mark. > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- Ethan Benson http://www.alaska.net/~erbenson/
msg12175/pgp00000.pgp
Description: PGP signature