From 82f60023e3d4b33624c85a149915b411b504e426 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Wed, 23 Jan 2013 20:16:57 -0500 Subject: 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 --- src/libudev/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf