summaryrefslogtreecommitdiff
path: root/source3/aparser/vluke.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-17 08:08:09 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-17 08:08:09 +0000
commitec6c547390494c7a04b14aa787bd1a163d6ee65b (patch)
tree84f7b089fb79dc7dcb0620388363da43fca52b48 /source3/aparser/vluke.c
parent0fc755d97a32b534ae9e450ee03fd39c5337e5d4 (diff)
downloadsamba-ec6c547390494c7a04b14aa787bd1a163d6ee65b.tar.gz
samba-ec6c547390494c7a04b14aa787bd1a163d6ee65b.tar.bz2
samba-ec6c547390494c7a04b14aa787bd1a163d6ee65b.zip
error check in vluke.c
more conversion from idl to .struct of srvsvc (This used to be commit 83b787f57e8e97ee4d3782e76c3fd003ed567885)
Diffstat (limited to 'source3/aparser/vluke.c')
-rw-r--r--source3/aparser/vluke.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/aparser/vluke.c b/source3/aparser/vluke.c
index 7adc396f6d..d26d1d04de 100644
--- a/source3/aparser/vluke.c
+++ b/source3/aparser/vluke.c
@@ -25,6 +25,10 @@ int main(int argc, char *argv[])
fname = argv[2];
fd = open(fname,O_RDONLY);
+ if (fd == -1) {
+ perror(fname);
+ exit(1);
+ }
fstat(fd, &st);
prs_init(&ps, 0, 4, MARSHALL);