Skip to content

Commit

Permalink
libshare: nfs: set export file 644
Browse files Browse the repository at this point in the history
The shares are publicly known anyway and can be interrogated by any
user, so this is a debugging aid more than anything

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
  • Loading branch information
nabijaczleweli committed May 18, 2021
1 parent 487beca commit 9781df6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libshare/nfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ nfs_init_tmpfile(const char *prefix, const char *mdir, struct tmpfile *tmpf)
return (B_FALSE);
}

(void) fchmod(fd, 0644);

tmpf->fp = fdopen(fd, "w+");
if (tmpf->fp == NULL) {
fprintf(stderr, "Unable to reopen temporary file: %s",
Expand Down

0 comments on commit 9781df6

Please sign in to comment.