diff options
Diffstat (limited to 'util-linux/mkswap.c')
-rw-r--r-- | util-linux/mkswap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index 61a786e92..53537fcd9 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c | |||
@@ -15,8 +15,7 @@ static void mkswap_selinux_setcontext(int fd, const char *path) | |||
15 | if (!is_selinux_enabled()) | 15 | if (!is_selinux_enabled()) |
16 | return; | 16 | return; |
17 | 17 | ||
18 | if (fstat(fd, &stbuf) < 0) | 18 | xfstat(fd, &stbuf, argv[0]); |
19 | bb_perror_msg_and_die("fstat failed"); | ||
20 | if (S_ISREG(stbuf.st_mode)) { | 19 | if (S_ISREG(stbuf.st_mode)) { |
21 | security_context_t newcon; | 20 | security_context_t newcon; |
22 | security_context_t oldcon = NULL; | 21 | security_context_t oldcon = NULL; |