[PATCH] hwclock: fix mismatched popen/fclose.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



date_child_fp is opened by popen, so should be closed with pclose.

Signed-off-by: John Keeping <john.keeping@xxxxxxxxxxx>
---
 hwclock/hwclock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c
index 11c606d..571d63f 100644
--- a/hwclock/hwclock.c
+++ b/hwclock/hwclock.c
@@ -676,7 +676,7 @@ interpret_date_string(const char *date_opt, time_t * const time_p) {
 				       date_opt, (long) *time_p);
 		}
 	}
-	fclose(date_child_fp);
+	pclose(date_child_fp);
 
 	return retcode;
 }
-- 
1.6.3.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux