]> arthur.barton.de Git - netatalk.git/commitdiff
Don't log failed lstat
authorRalph Boehme <sloowfranklin@gmail.com>
Mon, 16 Sep 2013 10:46:29 +0000 (12:46 +0200)
committerRalph Boehme <sloowfranklin@gmail.com>
Mon, 16 Sep 2013 10:46:29 +0000 (12:46 +0200)
libatalk/util/cnid.c

index 54dfb55cef4ad906038b48ae764efa61b723f75a..6e431c1b8d16dfca39d0a02bfc03e0ac1fdf5284 100644 (file)
@@ -177,11 +177,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,