aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
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 /miscutils/hdparm.c
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 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index bd3065d7e..ca60dcf37 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -1871,8 +1871,7 @@ static void process_dev (char *devname)
1871#ifndef HDIO_DRIVE_CMD 1871#ifndef HDIO_DRIVE_CMD
1872 int force_operation = 0; 1872 int force_operation = 0;
1873#endif 1873#endif
1874 if (stat(devname,&stat_buf)) 1874 xstat(devname,&stat_buf);
1875 bb_perror_msg_and_die(devname);
1876 1875
1877 switch(major(stat_buf.st_rdev)) 1876 switch(major(stat_buf.st_rdev))
1878 { 1877 {