diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-01-23 20:16:57 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-01-23 20:16:57 -0500 |
commit | 82f60023e3d4b33624c85a149915b411b504e426 (patch) | |
tree | 01b8b6d2c8d341802600eed3f0d5a1eee5bab102 | |
parent | 0407037a7bac67603382ffa3472b618cf7560db6 (diff) |
src/libudev/util.c: fix typo introduce at commit 1ebf647
The first argument of fcntl should be 'fd', the file descriptor.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r-- | src/libudev/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/util.c b/src/libudev/util.c index 1d57a01567..d3982b92e1 100644 --- a/src/libudev/util.c +++ b/src/libudev/util.c @@ -4586,7 +4586,7 @@ int fopen_temporary(const char *path, FILE **_f, char **_temp_path) { fd = mkostemp(t, O_WRONLY|O_CLOEXEC); #else fd = mkstemp(t); - fcntl(t, F_SETFD, FD_CLOEXEC); + fcntl(fd, F_SETFD, FD_CLOEXEC); #endif if (fd < 0) { free(t); |