FreeBSD Bugzilla – Attachment 7430 Details for
Bug 16119
ctm_rmail does not honor umask
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.05 KB, created by
blank
on 2000-01-14 08:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
blank
Created:
2000-01-14 08:40:00 UTC
Size:
1.05 KB
patch
obsolete
>*** ctm_rmail.c.orig Tue Jul 28 00:26:25 1998 >--- ctm_rmail.c Thu Jan 13 19:27:40 2000 >*************** >*** 31,36 **** >--- 31,37 ---- > int delete_after = 0; /* Delete deltas after ctm applies them. */ > int apply_verbose = 0; /* Run with '-v' */ > int set_time = 0; /* Set the time of the files that is changed. */ >+ int mask = 0; /* The current umask */ > > void apply_complete(void); > int read_piece(char *input_file); >*************** >*** 60,65 **** >--- 61,69 ---- > int status = 0; > int fork_ctm = 0; > >+ mask = umask(0); >+ umask(mask); >+ > err_prog_name(argv[0]); > > OPTIONS("[-Dfuv] [-p piecedir] [-d deltadir] [-b basedir] [-l log] [file ...]") >*************** >*** 442,447 **** >--- 446,452 ---- > mk_piece_name(pname, delta, 1, 1); > if (rename(pname, dname) == 0) > { >+ chmod(dname, 0666 & ~mask); > err("%s complete", delta); > return 1; > } >*************** >*** 552,557 **** >--- 557,563 ---- > unlink(tname); > return 0; > } >+ chmod(dname, 0666 & ~mask); > > /* > * Throw the pieces away.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16119
: 7430