Commit c9a2ff1d authored by rswindell's avatar rswindell
Browse files

Allow the default umask (typically 022) to be overridden with the new

-U (capital 'U') command-line option (e.g. '-U0' or '-U2' or '-U077').
parent 071ac4e4
......@@ -135,6 +135,9 @@ char *usage=
" -e<s> = set 'from' user number for imported message\n"
" -s<s> = set 'subject' for imported message\n"
" -z[n] = set time zone (n=min +/- from UT or 'EST','EDT','CST',etc)\n"
#ifdef __unix__
" -U[n] = set umask to specified value\n"
#endif
" -# = set number of messages to view/list (e.g. -1)\n"
;
......@@ -1604,6 +1607,11 @@ int main(int argc, char **argv)
j=strlen(argv[x])-1;
break;
case 'U':
#if defined(__unix__)
umask(strtol(argv[x]+j+1, NULL, 0));
j=strlen(argv[x])-1;
break;
#endif
case 'u':
to_number=argv[x]+j+1;
j=strlen(argv[x])-1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment