diff options
| author | Karel Zak <kzak@redhat.com> | 2013-04-03 16:14:03 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-04-03 16:14:03 +0200 |
| commit | 1eb8539d3b1d2cb636bb73222daeb0bf4f68d7ae (patch) | |
| tree | d2d8c594952d8abd82c42df4b610fbdd82fc1932 /libmount/src/tab_update.c | |
| parent | a61cac5b6474494fe5c409b82d09236c45856b07 (diff) | |
| download | util-linux-1eb8539d3b1d2cb636bb73222daeb0bf4f68d7ae.tar.gz | |
libmount: use O_CLOEXEC
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab_update.c')
| -rw-r--r-- | libmount/src/tab_update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c index 7ae540abf..044a13f5e 100644 --- a/libmount/src/tab_update.c +++ b/libmount/src/tab_update.c @@ -514,7 +514,7 @@ static int update_table(struct libmnt_update *upd, struct libmnt_table *tb) if (fd < 0) return fd; /* error */ - f = fdopen(fd, "w"); + f = fdopen(fd, "w" UL_CLOEXECSTR); if (f) { struct stat st; struct libmnt_iter itr; |
