Welcome to little lamb

Code » anopa » commit a5844b6

enable: Use dest name instead of source in warnings

author Olivier Brunel
2015-07-24 17:19:50 UTC
committer Olivier Brunel
2015-07-26 16:26:58 UTC
parent aceafd9ba73ddd8107a7e4961f63e5ea5e3d0428

enable: Use dest name instead of source in warnings

Except for when stat-ing the source. This makes more sense as it's more
likely to be about the destination (e.g. can't make symlink, set perms,
etc) than the source.

src/libanopa/enable_service.c +1 -1

diff --git a/src/libanopa/enable_service.c b/src/libanopa/enable_service.c
index c0a0648..6f2b298 100644
--- a/src/libanopa/enable_service.c
+++ b/src/libanopa/enable_service.c
@@ -309,7 +309,7 @@ copy_dir (const char        *src,
 next:
             if (r < 0)
             {
-                warn_fn (buf_src, errno);
+                warn_fn (buf_dst, errno);
                 goto err;
             }