Handle the new way that 'c' and 'h' get output by "%i".
authorWayne Davison <wayned@samba.org>
Wed, 9 Mar 2005 18:53:58 +0000 (18:53 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 9 Mar 2005 18:53:58 +0000 (18:53 +0000)
log.c

diff --git a/log.c b/log.c
index 412cae2..855fb73 100644 (file)
--- a/log.c
+++ b/log.c
@@ -438,8 +438,8 @@ static void log_formatted(enum logcode code, char *format, char *op,
                                break;
                        }
                        n = buf2;
                                break;
                        }
                        n = buf2;
-                       n[0] = iflags & ITEM_HARD_LINKED ? 'h'
-                            : iflags & ITEM_LOCAL_CHANGE ? 'c'
+                       n[0] = iflags & ITEM_LOCAL_CHANGE
+                             ? iflags & ITEM_XNAME_FOLLOWS ? 'h' : 'c'
                             : !(iflags & ITEM_TRANSFER) ? '.'
                             : *op == 's' ? '>' : '<';
                        n[1] = S_ISDIR(file->mode) ? 'd'
                             : !(iflags & ITEM_TRANSFER) ? '.'
                             : *op == 's' ? '>' : '<';
                        n[1] = S_ISDIR(file->mode) ? 'd'