projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
016f6f4
)
btrfs-progs: close fd on return from label get/set functions
author
Eric Sandeen
<sandeen@redhat.com>
Mon, 11 Mar 2013 23:12:58 +0000
(18:12 -0500)
committer
David Sterba
<dsterba@suse.cz>
Tue, 12 Mar 2013 15:34:41 +0000
(16:34 +0100)
Somehow missed these 2 in the last round.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
utils.c
patch
|
blob
|
history
diff --git
a/utils.c
b/utils.c
index
f68436d
..
1c73d67
100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-1217,6
+1217,7
@@
static int set_label_mounted(const char *mount_path, const char *label)
return -1;
}
+ close(fd);
return 0;
}
@@
-1274,6
+1275,7
@@
static int get_label_mounted(const char *mount_path)
}
fprintf(stdout, "%s\n", label);
+ close(fd);
return 0;
}