]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/cnid.c
Don't log failed lstat
[netatalk.git] / libatalk / util / cnid.c
index 54dfb55cef4ad906038b48ae764efa61b723f75a..7fb079004cc586f9008e1248fb94b65b114b5c66 100644 (file)
@@ -80,8 +80,7 @@ bstring rel_path_in_vol(const char *path, const char *volpath)
         return NULL;
 
     EC_NEG1_LOG(cwd = open(".", O_RDONLY));
-
-    EC_ZERO_LOGSTR(lstat(path, &st), "lstat(%s): %s", path, strerror(errno));
+    EC_ZERO( lstat(path, &st) );
 
     if (path[0] == '/') {
         EC_NULL(fpath = bfromcstr(path));
@@ -177,11 +176,8 @@ cnid_t cnid_for_path(struct _cnid_db *cdb,
     for (int i = 0; i < l->qty ; i++) {
         *did = cnid;
 
-        EC_ZERO(bconcat(statpath, l->entry[i]));
-        EC_ZERO_LOGSTR(lstat(cfrombstr(statpath), &st),
-                       "lstat(rpath: %s, elem: %s): %s: %s",
-                       cfrombstr(rpath), cfrombstr(l->entry[i]),
-                       cfrombstr(statpath), strerror(errno));
+        EC_ZERO( bconcat(statpath, l->entry[i]) );
+        EC_ZERO( lstat(cfrombstr(statpath), &st) );
 
         if ((cnid = cnid_add(cdb,
                              &st,