2006-07-03 01:17:05 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
2006-03-13 21:15:16 +05:30
|
|
|
/*
|
|
|
|
* xstat.c - a stat() which dies on failure with meaningful error message
|
|
|
|
*/
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "libbb.h"
|
|
|
|
|
|
|
|
void xstat(const char *name, struct stat *stat_buf)
|
|
|
|
{
|
|
|
|
if (stat(name, stat_buf))
|
|
|
|
bb_perror_msg_and_die("Can't stat '%s'", name);
|
|
|
|
}
|