Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 423139
Collapse All | Expand All

(-)logrotate-3.8.0-atomic-create.patch.orig (-1 / +1 lines)
Lines 8-14 diff '--exclude-from=/home/dang/.scripts Link Here
8
+	char template[PATH_MAX + 1];
8
+	char template[PATH_MAX + 1];
9
+	char *fname;
9
+	char *fname;
10
+	mode_t umask_value;
10
+	mode_t umask_value;
11
+	snprintf(template, PATH_MAX, "%s/logrotate_temp.XXXXXX", ourDirName(fileName));
11
+	snprintf(template, PATH_MAX, "/tmp/logrotate_temp.XXXXXX");
12
 
12
 
13
-	fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW),
13
-	fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW),
14
-		(S_IRUSR | S_IWUSR) & sb->st_mode);
14
-		(S_IRUSR | S_IWUSR) & sb->st_mode);

Return to bug 423139