projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Denis Vlasenko spotted the lack of bounds checking in my first attempt at
[oweals/busybox.git]
/
libbb
/
xstat.c
1
/* vi: set sw=4 ts=4: */
2
/*
3
* xstat.c - a stat() which dies on failure with meaningful error message
4
*/
5
#include <unistd.h>
6
#include "libbb.h"
7
8
void xstat(const char *name, struct stat *stat_buf)
9
{
10
if (stat(name, stat_buf))
11
bb_perror_msg_and_die("Can't stat '%s'", name);
12
}