diff options
author | Benjamin Marzinski <bmarzins@redhat.com> | 2010-05-19 22:59:57 -0500 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2010-05-20 06:50:40 +0200 |
commit | 50fff90e06a4cd0e9fc670c417210f88d8665568 (patch) | |
tree | 8f4af89da72ebab4b70edfb1ff1a2b3e3a5de6da | |
parent | d33190d0c2fb8c6438ed05775afd971d55334793 (diff) | |
download | multipath-tools-50fff90e06a4cd0e9fc670c417210f88d8665568.tar.gz multipath-tools-50fff90e06a4cd0e9fc670c417210f88d8665568.tar.bz2 multipath-tools-50fff90e06a4cd0e9fc670c417210f88d8665568.zip |
multipath: close sysfs file after setting value
We need to close the sysfs file after setting its value.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
-rw-r--r-- | libmultipath/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmultipath/sysfs.c b/libmultipath/sysfs.c index b05a274..efbe7c1 100644 --- a/libmultipath/sysfs.c +++ b/libmultipath/sysfs.c @@ -407,6 +407,7 @@ sysfs_attr_set_value(const char *devpath, const char *attr_name, path_full, ret); ret = -1; } + close(fd); out: return ret; } |