Changes in 22.3
================
+2006-04-05 Karel Zak
+ * fuser return code set correcly in silent mode
+ * fuser -l doesnt complain but list signal names only
+
2006-03-24 Craig Small
* Updated Bulgarian and Italian PO files
* Added Japanese and Hungarian PO files
break;
case 'l':
list_signals();
- break;
+ return 0;
case 'm':
opts |= OPT_MOUNTS;
break;
int have_match = 0;
for (nptr = names_head; nptr != NULL ; nptr = nptr->next) {
- if (! (opts & OPT_SILENT)) { /* We're not silent */
+ if (opts & OPT_SILENT) {
+ have_match = nptr->matched_procs ? 1 : have_match;
+ } 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"),
putc('\n', stderr);
} /* be silent */
if (opts & OPT_KILL)
- kill_matched_proc(nptr->matched_procs, opts, sig_number);
+ kill_matched_proc(nptr->matched_procs, opts, sig_number);
} /* next name */
return (have_match==1?0:1);