Fix 'zypper ps' not printing the first file twice. (bnc#599265)
authorMichael Andres <ma@suse.de>
Wed, 28 Apr 2010 11:53:11 +0000 (13:53 +0200)
committerMichael Andres <ma@suse.de>
Wed, 28 Apr 2010 11:53:11 +0000 (13:53 +0200)
src/utils/misc.cc

index 45760e6..ebd2125 100644 (file)
@@ -432,7 +432,7 @@ void list_processes_using_deleted_files(Zypper & zypper)
     tr << it->pid << it->ppid << it->puid << it->login << it->command
       << it->service() << (fit != it->files.end() ? *fit : "");
     t << tr;
-    for (; fit != it->files.end(); ++fit)
+    for (++fit; fit != it->files.end(); ++fit)
     {
       TableRow tr1;
       tr1 << "" << "" << "" << "" << "" << "" << *fit;