aboutsummaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stat.c b/src/stat.c
index 2751873..4c1d434 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1,5 +1,5 @@
/* This file is part of tagr.
- Copyright (C) 2005, Sergey Poznyakoff
+ Copyright (C) 2005, 2009 Sergey Poznyakoff
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -370,7 +370,7 @@ import (const char *dirname)
verbose (2, "Examining `%s'", dirname);
if (stat (dirname, &st))
- die (3, "cannot stat file `%s': %s", dirname, strerror (errno));
+ die (EX_OSERR, "cannot stat file `%s': %s", dirname, strerror (errno));
else if (S_ISREG (st.st_mode))
{
open_db ();
@@ -401,16 +401,16 @@ import (const char *dirname)
break;
case GLOB_NOSPACE:
- die (3, "cannot scan directory: %s", strerror (ENOMEM));
+ die (EX_UNAVAILABLE, "cannot scan directory: %s", strerror (ENOMEM));
case GLOB_ABORTED:
- die (3, "scanning aborted");
+ die (EX_UNAVAILABLE, "scanning aborted");
case GLOB_NOMATCH:
break;
default:
- die (3, "cannot scan directory `%s'", dirname);
+ die (EX_UNAVAILABLE, "cannot scan directory `%s'", dirname);
}
}

Return to:

Send suggestions and report system problems to the System administrator.