aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-13 15:45:16 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-13 15:45:16 +0000
commit12f32660d14e442e42ed667c106fec3a9db79856 (patch)
treee44405a7e5212758d20a9595cbb0a82609d4a347 /util-linux
parente02e2f9792dc829c10ca3f18a1fab0294404ffea (diff)
downloadbusybox-w32-12f32660d14e442e42ed667c106fec3a9db79856.tar.gz
busybox-w32-12f32660d14e442e42ed667c106fec3a9db79856.tar.bz2
busybox-w32-12f32660d14e442e42ed667c106fec3a9db79856.zip
Patch from Denis Vlasenko to add xstat() and use it.
git-svn-id: svn://busybox.net/trunk/busybox@14530 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/swaponoff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index ce55a132a..473325d0c 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -23,8 +23,7 @@ static int swap_enable_disable(const char *device)
23 int status; 23 int status;
24 struct stat st; 24 struct stat st;
25 25
26 if (stat(device, &st) < 0) 26 xstat(device, &st);
27 bb_perror_msg_and_die("cannot stat %s", device);
28 27
29 /* test for holes */ 28 /* test for holes */
30 if (S_ISREG(st.st_mode)) 29 if (S_ISREG(st.st_mode))