2a24 patch number 2

From: Daniel Stenberg <Daniel.Stenberg_at_frontec.se_at_hypermail-project.org>
Date: Tue, 10 Aug 1999 13:14:14 +0200 (MET DST)
Message-ID: <Pine.GSO.4.10.9908101311020.14745-100000_at_metal.sth.frontec.se>


Well

This patch makes hypermail 2a24 create the attachment directories with the dirmode specified in the config. Without this patch, it makes a mere mkdir() which normally is subject to umask bitmasking. The patched version will use the specified dirmode unregarding of the umask.

                   mkdir(checkpath, set_dirmode);

+ if (chmod(dir, set_dirmode) == -1) {
+ sprintf(errmsg,"%s \"%s\" to %o.",
+ lang[MSG_CANNOT_CHMOD],dir, set_dirmode);
+ progerr(errmsg);
+ }
fprintf(stderr, "\nCreated dir %s\n", checkpath); -- Daniel Stenberg - http://www.fts.frontec.se/~dast
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol Received on Mon 16 Aug 1999 11:16:05 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:51 PM GMT GMT