"Todd C. Miller" <[EMAIL PROTECTED]> writes:
> Folder-Protect uses strtoul() instead of assuming octal which breaks
> folks who have had:
> 
> Msg-Protect: 600
> Folder-Protect: 700
> 
> in their .mh_profile since time immemorial.  Using strtoul() in
> auto-radix mode seems pretty bogus since users are used to having
> the missing '0' added for them with program that expect octal input
> (like chmod).
> 
>  - todd
> 
> --- sbr/makedir.c.DIST        Fri Jan 28 02:43:39 2000
> +++ sbr/makedir.c     Wed Mar 29 09:26:10 2000
> @@ -32,11 +32,7 @@
>      if (!(folder_perms_ASCII = context_find ("folder-protect")))
>       folder_perms_ASCII = foldprot;  /* defaults to "0700" */
>      
> -    /* Call strtoul() with radix=0, which means it'll determine the base by
> -       looking at the first digit.  That way it'll know "0700" is an octal
> -       constant (and if someone gets wacky and changes the representation to hex
> -       it'll still work). */
> -    folder_perms = strtoul(folder_perms_ASCII, NULL, 0);
> +    folder_perms = atooi(folder_perms_ASCII);
>  
>      /* Folders have definite desired permissions that are set -- we don't want
>         to interact with the umask.  Clear it temporarily. */

Thanks, Todd.  That's already been fixed in the latest nmh-1.0.3+dev.

-----------------------------------------------------------------------
Dan Harkless                   | To prevent SPAM contamination, please 
[EMAIL PROTECTED]      | do not post this private email address
SpeedGate Communications, Inc. | to the USENET or WWW.  Thank you.     

Reply via email to