tprint + new files in verbose mode (Michael Kaminsky) - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 47964cbc7b1409edc4908f199912e25d17b63b55
(DIR) parent 9ae50083867061b73bf74ed0ee713a7e022ba3c6
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 18 Jan 2007 18:34:46 +0000
print + new files in verbose mode (Michael Kaminsky)
Diffstat:
M src/cmd/vac/vac.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c
t@@ -544,6 +544,9 @@ vacdata(DirSink *dsink, int fd, char *lname, VacFile *vf, Dir *dir)
return;
}
+ if(verbose)
+ fprint(2, "+ %s\n", lname);
+
/* look for an append only file */
if((dir->mode&DMAPPEND) != 0)
if(vd.size < dir->length)