Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > c340b3efbadb98365165340791ee9421 > files > 46

shadow-utils-4.0.3-9.1.102mdk.src.rpm

--- shadow-4.0.3/src/useradd.c~	2006-05-19 10:11:52.793310287 -0600
+++ shadow-4.0.3/src/useradd.c	2006-05-19 10:11:52.793310287 -0600
@@ -1787,7 +1787,7 @@
 	if (ms != NULL) {
 		sprintf(ms, "/var/mail/%s", user_name);
 		if (access(ms, R_OK) != 0) {
-			fd = open(ms, O_CREAT|O_EXCL|O_WRONLY|O_TRUNC);
+			fd = open(ms, O_CREAT|O_EXCL|O_WRONLY|O_TRUNC,0);
 			if (fd != -1) {
 				fchown(fd, user_id, mail_gid);
 				fchmod(fd, mode);