diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-07 14:25:22 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-07 14:25:22 +0000 |
commit | 09a778622a30cd90a7065c4c352ebecb334761cd (patch) | |
tree | 6ff51544e3039a24f96419176fd99b78dc6f2339 /miscutils/hdparm.c | |
parent | 902c9c09e491f6a2f43fafc3c272691bf94a82bb (diff) | |
download | busybox-w32-09a778622a30cd90a7065c4c352ebecb334761cd.tar.gz busybox-w32-09a778622a30cd90a7065c4c352ebecb334761cd.tar.bz2 busybox-w32-09a778622a30cd90a7065c4c352ebecb334761cd.zip |
Tito writes: this patch fixes two potential bugs with the -i -I flags that could be reset during option parsing
git-svn-id: svn://busybox.net/trunk/busybox@15307 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r-- | miscutils/hdparm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 5ac7bdcb7..5703eceb5 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -2122,8 +2122,8 @@ int hdparm_main(int argc, char **argv) | |||
2122 | while ((c = getopt(argc, argv, hdparm_options)) >= 0) { | 2122 | while ((c = getopt(argc, argv, hdparm_options)) >= 0) { |
2123 | flagcount++; | 2123 | flagcount++; |
2124 | if (c == 'h') bb_show_usage(); /* EXIT */ | 2124 | if (c == 'h') bb_show_usage(); /* EXIT */ |
2125 | USE_FEATURE_HDPARM_GET_IDENTITY(get_IDentity = (c == 'I')); | 2125 | USE_FEATURE_HDPARM_GET_IDENTITY(get_IDentity |= (c == 'I')); |
2126 | USE_FEATURE_HDPARM_GET_IDENTITY(get_identity = (c == 'i')); | 2126 | USE_FEATURE_HDPARM_GET_IDENTITY(get_identity |= (c == 'i')); |
2127 | get_geom |= (c == 'g'); | 2127 | get_geom |= (c == 'g'); |
2128 | do_flush |= (c == 'f'); | 2128 | do_flush |= (c == 'f'); |
2129 | if (c == 'u') parse_opts(&get_unmask, &set_unmask, &unmask, 0, 1); | 2129 | if (c == 'u') parse_opts(&get_unmask, &set_unmask, &unmask, 0, 1); |