diff options
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/script.c | 2 | ||||
-rw-r--r-- | util-linux/volume_id/get_devname.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/script.c b/util-linux/script.c index 1c95ea550..700f0cb0a 100644 --- a/util-linux/script.c +++ b/util-linux/script.c | |||
@@ -168,7 +168,7 @@ int script_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
168 | /* child: make pty slave to be input, output, error; run shell */ | 168 | /* child: make pty slave to be input, output, error; run shell */ |
169 | close(pty); /* close pty master */ | 169 | close(pty); /* close pty master */ |
170 | /* open pty slave to fd 0,1,2 */ | 170 | /* open pty slave to fd 0,1,2 */ |
171 | close(0); | 171 | close(0); |
172 | xopen(pty_line, O_RDWR); /* uses fd 0 */ | 172 | xopen(pty_line, O_RDWR); /* uses fd 0 */ |
173 | xdup2(0, 1); | 173 | xdup2(0, 1); |
174 | xdup2(0, 2); | 174 | xdup2(0, 2); |
diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c index b46aad4a2..d1968b744 100644 --- a/util-linux/volume_id/get_devname.c +++ b/util-linux/volume_id/get_devname.c | |||
@@ -71,7 +71,7 @@ static void | |||
71 | uuidcache_addentry(char *device, /*int major, int minor,*/ char *label, char *uuid) | 71 | uuidcache_addentry(char *device, /*int major, int minor,*/ char *label, char *uuid) |
72 | { | 72 | { |
73 | struct uuidCache_s *last; | 73 | struct uuidCache_s *last; |
74 | 74 | ||
75 | if (!uuidCache) { | 75 | if (!uuidCache) { |
76 | last = uuidCache = xzalloc(sizeof(*uuidCache)); | 76 | last = uuidCache = xzalloc(sizeof(*uuidCache)); |
77 | } else { | 77 | } else { |