Lines 400-406
SaErrorT oh_uid_map_to_file(void)
Link Here
|
400 |
|
400 |
|
401 |
uid_lock(&oh_uid_lock); |
401 |
uid_lock(&oh_uid_lock); |
402 |
|
402 |
|
403 |
file = open(uid_map_file, O_WRONLY|O_CREAT|O_TRUNC); |
403 |
file = open(uid_map_file, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP); |
404 |
if(file < 0) { |
404 |
if(file < 0) { |
405 |
dbg("Configuration file '%s' could not be opened", uid_map_file); |
405 |
dbg("Configuration file '%s' could not be opened", uid_map_file); |
406 |
uid_unlock(&oh_uid_lock); |
406 |
uid_unlock(&oh_uid_lock); |
Lines 467-473
static gint uid_map_from_file()
Link Here
|
467 |
dbg("Configuration file '%s' does not exist, initializing", uid_map_file); |
467 |
dbg("Configuration file '%s' does not exist, initializing", uid_map_file); |
468 |
file = open(uid_map_file, |
468 |
file = open(uid_map_file, |
469 |
O_RDWR | O_CREAT | O_TRUNC, |
469 |
O_RDWR | O_CREAT | O_TRUNC, |
470 |
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH ); |
470 |
S_IRUSR | S_IWUSR | S_IRGRP); |
471 |
if(file < 0) { |
471 |
if(file < 0) { |
472 |
dbg("Could not initialize uid map file, %s", uid_map_file ); |
472 |
dbg("Could not initialize uid map file, %s", uid_map_file ); |
473 |
return -1; |
473 |
return -1; |