]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/cnid.c
Don't log failed lstat
[netatalk.git] / 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,