Changes in 22.4
===============
+2007-04-11 Craig Small
+ * fuser correctly parses remote tcp ports Debian #397033
+ * Removed extra blank lines in fuser Debian #386564
+
2007-03-02 Karel Zak
* killall <path> does textual path comparision with value of the
/proc/<pid>/exe link when a comparision with inode number failed.
#endif /* DEBUG */
if ( (conn_tmp->lcl_port == 0 || conn_tmp->lcl_port == loc_port) &&
(conn_tmp->rmt_port == 0 || conn_tmp->rmt_port == rmt_port) &&
- (memcmp(&(conn_tmp->rmt_address), &(rmt_addr),16) ==0)
+ (memcmp(&(conn_tmp->rmt_address), &in6addr_any,16) == 0 ||
+ (memcmp(&(conn_tmp->rmt_address), &(rmt_addr),16) ==0))
) {
add_inode(ino_list, conn_tmp->name, netdev, inode);
}
} else { /* We're not silent */
if (nptr->matched_procs != NULL || opts & OPT_ALLFILES) {
if (head == 0 && opts & OPT_VERBOSE) {
- fprintf(stderr, _("\n%*s USER PID ACCESS COMMAND\n"),
+ fprintf(stderr, _("%*s USER PID ACCESS COMMAND\n"),
NAME_FIELD, "");
head = 1;
}
len = 0;
first = 0;
}
- if (nptr->matched_procs != NULL || opts & OPT_ALLFILES)
+ if (opts & OPT_VERBOSE) {
+ /* put a newline if showing all files and no procs*/
+ if (nptr->matched_procs == NULL && (opts & OPT_ALLFILES))
+ putc('\n', stderr);
+ } else {
+ if (nptr->matched_procs != NULL || (opts & OPT_ALLFILES))
putc('\n', stderr);
+ }
} /* be silent */
if (opts & OPT_KILL)
kill_matched_proc(nptr->matched_procs, opts, sig_number);