librtas/librtas-1.3.2-mode.patch

13 lines
645 B
Diff
Raw Normal View History

diff -up librtas-1.3.2/librtas_src/syscall_rmo.c.mode librtas-1.3.2/librtas_src/syscall_rmo.c
--- librtas-1.3.2/librtas_src/syscall_rmo.c.mode 2007-08-06 12:02:34.000000000 -0400
+++ librtas-1.3.2/librtas_src/syscall_rmo.c 2007-09-05 17:03:10.000000000 -0400
@@ -117,7 +117,7 @@ static int acquire_file_lock(off_t start
/* Lazily open lock file */
if (wa_config.lockfile_fd < 0) {
- wa_config.lockfile_fd = open(lockfile_path, O_CREAT | O_RDWR);
+ wa_config.lockfile_fd = open(lockfile_path, O_CREAT | O_RDWR, 0600);
if (wa_config.lockfile_fd < 0) {
dbg1("could not open lockfile %s\n", lockfile_path);
return RTAS_IO_ASSERT;