Hello community, here is the log from the commit of package fnotifystat for openSUSE:Factory checked in at 2018-07-12 09:19:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fnotifystat (Old) and /work/SRC/openSUSE:Factory/.fnotifystat.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fnotifystat" Thu Jul 12 09:19:46 2018 rev:4 rq:622039 version:0.02.01 Changes: -------- --- /work/SRC/openSUSE:Factory/fnotifystat/fnotifystat.changes 2018-01-09 14:54:05.129292363 +0100 +++ /work/SRC/openSUSE:Factory/.fnotifystat.new/fnotifystat.changes 2018-07-12 09:21:34.818621223 +0200 @@ -1,0 +2,12 @@ +Sun Jun 17 15:36:29 UTC 2018 - [email protected] + +- Update to version 0.02.01 + * Makefile: bump version + * debian/copyright: use secure URI + * debian/control: update dephelper to >= 11 + * debian/control: remove trailing empty line + * debian/compat: update to 11 + * voidify unused function returns + * Update copyright year + +------------------------------------------------------------------- Old: ---- fnotifystat-0.02.00.tar.gz New: ---- fnotifystat-0.02.01.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fnotifystat.spec ++++++ --- /var/tmp/diff_new_pack.sC8kmo/_old 2018-07-12 09:21:35.206621766 +0200 +++ /var/tmp/diff_new_pack.sC8kmo/_new 2018-07-12 09:21:35.210621771 +0200 @@ -18,14 +18,13 @@ Name: fnotifystat -Version: 0.02.00 +Version: 0.02.01 Release: 0 Summary: File activity monitoring tool -License: GPL-2.0+ +License: GPL-2.0-or-later Group: System/Monitoring -Url: http://kernel.ubuntu.com/~cking/fnotifystat/ +URL: http://kernel.ubuntu.com/~cking/fnotifystat/ Source: http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Fnotifystat periodically dumps out the activity on files in the system. It can @@ -43,9 +42,8 @@ %make_install %files -%defattr(-,root,root) -%doc COPYING +%license COPYING %{_sbindir}/fnotifystat -%{_mandir}/man8/fnotifystat.8%{ext_man} +%{_mandir}/man8/fnotifystat.8%{?ext_man} %changelog ++++++ fnotifystat-0.02.00.tar.gz -> fnotifystat-0.02.01.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fnotifystat-0.02.00/Makefile new/fnotifystat-0.02.01/Makefile --- old/fnotifystat-0.02.00/Makefile 2018-01-05 00:44:37.000000000 +0100 +++ new/fnotifystat-0.02.01/Makefile 2018-06-17 14:18:52.000000000 +0200 @@ -1,5 +1,5 @@ # -# Copyright (C) 2014-2017 Canonical, Ltd. +# Copyright (C) 2014-2018 Canonical, Ltd. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.02.00 +VERSION=0.02.01 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fnotifystat-0.02.00/fnotifystat.8 new/fnotifystat-0.02.01/fnotifystat.8 --- old/fnotifystat-0.02.00/fnotifystat.8 2018-01-05 00:44:37.000000000 +0100 +++ new/fnotifystat-0.02.01/fnotifystat.8 2018-06-17 14:18:52.000000000 +0200 @@ -158,7 +158,7 @@ .PP This manual page was written by Colin King <[email protected]>, for the Ubuntu project (but may be used by others). .SH COPYRIGHT -Copyright \(co 2014-2017 Canonical Ltd. +Copyright \(co 2014-2018 Canonical Ltd. .br This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fnotifystat-0.02.00/fnotifystat.c new/fnotifystat-0.02.01/fnotifystat.c --- old/fnotifystat-0.02.00/fnotifystat.c 2018-01-05 00:44:37.000000000 +0100 +++ new/fnotifystat-0.02.01/fnotifystat.c 2018-06-17 14:18:52.000000000 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2017 Canonical, Ltd. + * Copyright (C) 2014-2018 Canonical, Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -237,11 +237,11 @@ errno = 0; val = strtod(str, NULL); if (errno) { - fprintf(stderr, "Invalid value %s.\n", str); + (void)fprintf(stderr, "Invalid value %s.\n", str); exit(EXIT_FAILURE); } if (*len == 0) { - fprintf(stderr, "Value %s is an invalid size.\n", str); + (void)fprintf(stderr, "Value %s is an invalid size.\n", str); exit(EXIT_FAILURE); } return val; @@ -266,7 +266,7 @@ ch = str[len]; if (val < 0.0) { - printf("Value %s cannot be negative\n", str); + (void)printf("Value %s cannot be negative\n", str); exit(EXIT_FAILURE); } @@ -279,7 +279,7 @@ return val * scales[i].scale; } - printf("Illegal %s specifier %c\n", msg, str[len]); + (void)printf("Illegal %s specifier %c\n", msg, str[len]); exit(EXIT_FAILURE); } @@ -311,9 +311,9 @@ if (v <= 500) break; } - snprintf(buf, buflen, "%5.1f%c", v, scales[i]); + (void)snprintf(buf, buflen, "%5.1f%c", v, scales[i]); } else { - snprintf(buf, buflen, "%6.1f", v); + (void)snprintf(buf, buflen, "%6.1f", v); } return buf; @@ -348,7 +348,7 @@ time_t now = time(NULL); if (now == ((time_t) -1)) { - memset(tm, 0, sizeof(struct tm)); + (void)memset(tm, 0, sizeof(struct tm)); } else { (void)localtime_r(&now, tm); } @@ -360,7 +360,7 @@ */ static void __attribute__ ((noreturn)) pr_error(const char *msg) { - fprintf(stderr, "Fatal error: %s: errno=%d (%s)\n", + (void)fprintf(stderr, "Fatal error: %s: errno=%d (%s)\n", msg, errno, strerror(errno)); exit(EXIT_FAILURE); } @@ -371,7 +371,7 @@ */ static void __attribute__ ((noreturn)) pr_nomem(const char *msg) { - fprintf(stderr, "Fatal error: out of memory: %s\n", msg); + (void)fprintf(stderr, "Fatal error: out of memory: %s\n", msg); exit(EXIT_FAILURE); } @@ -408,7 +408,7 @@ } if (ret < 1) { - strncpy(buffer, "<unknown>", sizeof(buffer)); + (void)strncpy(buffer, "<unknown>", sizeof(buffer)); } else { char *ptr; @@ -522,7 +522,7 @@ dir = opendir("/proc"); if (dir == NULL) { - fprintf(stderr, "Cannot open /proc, is it mounted?\n"); + (void)fprintf(stderr, "Cannot open /proc, is it mounted?\n"); exit(EXIT_FAILURE); } while ((dirp = readdir(dir)) != NULL) { @@ -531,7 +531,7 @@ (void)proc_info_get(pid); } } - closedir(dir); + (void)closedir(dir); } /* @@ -693,7 +693,7 @@ /* This really should not happen, / is always mounted */ if (!count) { - fprintf(stderr, "no mount points could be monitored\n"); + (void)fprintf(stderr, "no mount points could be monitored\n"); (void)close(fan_fd); exit(EXIT_FAILURE); } @@ -730,14 +730,15 @@ struct stat statbuf; if (fstat(fd, &statbuf) < 0) { - snprintf(buf, sizeof(buf), "%-10.10s %11s", + (void)snprintf(buf, sizeof(buf), "%-10.10s %11s", "(?:?)", "?"); } else { char dev[32]; - snprintf(dev, sizeof(dev), "%u:%u", + + (void)snprintf(dev, sizeof(dev), "%u:%u", major(statbuf.st_dev), minor(statbuf.st_dev)); - snprintf(buf, sizeof(buf), "%-10.10s %11lu", + (void)snprintf(buf, sizeof(buf), "%-10.10s %11lu", dev, statbuf.st_ino); } @@ -747,9 +748,9 @@ struct stat statbuf; if (fstat(fd, &statbuf) < 0) { - snprintf(buf, sizeof(buf), "?:?"); + (void)snprintf(buf, sizeof(buf), "?:?"); } else { - snprintf(buf, sizeof(buf), "%u:%u", + (void)snprintf(buf, sizeof(buf), "%u:%u", major(statbuf.st_dev), minor(statbuf.st_dev)); } @@ -849,7 +850,7 @@ * so flush out old.. */ count_to_str((double)previous.count, str, sizeof(str)); - printf("%2.2d/%2.2d/%-2.2d %2.2d:%2.2d:%2.2d %s (%4.4s) %*d %-15.15s %s\n", + (void)printf("%2.2d/%2.2d/%-2.2d %2.2d:%2.2d:%2.2d %s (%4.4s) %*d %-15.15s %s\n", previous.tm.tm_mday, previous.tm.tm_mon + 1, (previous.tm.tm_year+1900) % 100, previous.tm.tm_hour, previous.tm.tm_min, previous.tm.tm_sec, str, @@ -1008,14 +1009,14 @@ struct tm tm; get_tm(&tm); - snprintf(ts, sizeof(ts), " [%2.2d/%2.2d/%-2.2d %2.2d:%2.2d:%2.2d]\n", + (void)snprintf(ts, sizeof(ts), " [%2.2d/%2.2d/%-2.2d %2.2d:%2.2d:%2.2d]\n", tm.tm_mday, tm.tm_mon + 1, (tm.tm_year+1900) % 100, tm.tm_hour, tm.tm_min, tm.tm_sec); } else { *ts = '\0'; } pid_size = pid_max_digits(); - printf("Total Open Close Read Write %*.*s Process %s%s\n", + (void)printf("Total Open Close Read Write %*.*s Process %s%s\n", pid_size, pid_size, "PID", (opt_flags & OPT_INODE) ? "Dev (Maj:Min) Inode" : (opt_flags & OPT_DEVICE) ? "Dev (Maj:Min)" : "Pathname", ts); @@ -1023,7 +1024,7 @@ if (top && j <= top) { char buf[5][32]; - printf("%s %s %s %s %s %*d %-15.15s %s\n", + (void)printf("%s %s %s %s %s %*d %-15.15s %s\n", count_to_str(sorted[j]->total / dur, buf[0], sizeof(buf[0])), count_to_str(sorted[j]->open / dur, buf[1], sizeof(buf[1])), count_to_str(sorted[j]->close / dur, buf[2], sizeof(buf[2])), @@ -1067,20 +1068,20 @@ errno = 0; pid = strtol(token, NULL, 10); if (errno) { - fprintf(stderr, "Invalid PID specified.\n"); + (void)fprintf(stderr, "Invalid PID specified.\n"); return -1; } } else { name = strdup(token); if (!name) { - fprintf(stderr, "Out of memory allocating process name info.\n"); + (void)fprintf(stderr, "Out of memory allocating process name info.\n"); return -1; } named_procs = true; } p = calloc(1, sizeof(proc_info_t)); if (!p) { - fprintf(stderr, "Out of memory allocating process info.\n"); + (void)fprintf(stderr, "Out of memory allocating process info.\n"); free(name); return -1; } @@ -1091,7 +1092,7 @@ proc_list = p; } if (proc_list == NULL) { - fprintf(stderr, "No valid process ID or names given.\n"); + (void)fprintf(stderr, "No valid process ID or names given.\n"); return -1; } return 0; @@ -1111,12 +1112,12 @@ p = calloc(1, sizeof(pathname_t)); if (!p) { - fprintf(stderr, "Out of memory allocating pathname info.\n"); + (void)fprintf(stderr, "Out of memory allocating pathname info.\n"); return -1; } p->pathname = strdup(token); if (!p->pathname) { - fprintf(stderr, "Out of memory allocating pathname info.\n"); + (void)fprintf(stderr, "Out of memory allocating pathname info.\n"); free(p); return -1; } @@ -1127,7 +1128,7 @@ } if (!added) { - fprintf(stderr, "No valid pathnames were given.\n"); + (void)fprintf(stderr, "No valid pathnames were given.\n"); return -1; } return 0; @@ -1158,8 +1159,8 @@ */ static void show_usage(void) { - printf("%s, version %s\n\n", app_name, VERSION); - printf("Options are:\n" + (void)printf("%s, version %s\n\n", app_name, VERSION); + (void)printf("Options are:\n" " -c cumulative totals over time\n" " -d strip directory off the filenames\n" " -D order stats by unique device\n" @@ -1224,7 +1225,7 @@ break; case 'p': if (parse_pid_list(optarg) < 0) { - fprintf(stderr, "Invalid value for -p option.\n"); + (void)fprintf(stderr, "Invalid value for -p option.\n"); exit(EXIT_FAILURE); } opt_flags |= OPT_PID; @@ -1239,11 +1240,11 @@ errno = 0; top = strtol(optarg, NULL, 10); if (errno) { - fprintf(stderr, "Invalid value for -t option.\n"); + (void)fprintf(stderr, "Invalid value for -t option.\n"); exit(EXIT_FAILURE); } if (top < 1) { - fprintf(stderr, "Value for -t option must be 1 or more.\n"); + (void)fprintf(stderr, "Value for -t option must be 1 or more.\n"); exit(EXIT_FAILURE); } break; @@ -1258,7 +1259,7 @@ exit(EXIT_FAILURE); break; case '?': - printf("Try '%s -h' for more information.\n", app_name); + (void)printf("Try '%s -h' for more information.\n", app_name); exit(EXIT_FAILURE); default: show_usage(); @@ -1268,7 +1269,7 @@ if (optind < argc) { duration_secs = get_seconds(argv[optind++]); if (duration_secs < 0.5) { - fprintf(stderr, "Duration must be 0.5 or more.\n"); + (void)fprintf(stderr, "Duration must be 0.5 or more.\n"); exit(EXIT_FAILURE); } } @@ -1277,34 +1278,34 @@ errno = 0; count = strtol(argv[optind++], NULL, 10); if (errno) { - fprintf(stderr, "Invalid count value\n"); + (void)fprintf(stderr, "Invalid count value\n"); exit(EXIT_FAILURE); } if (count < 1) { - fprintf(stderr, "Count must be > 0\n"); + (void)fprintf(stderr, "Count must be > 0\n"); exit(EXIT_FAILURE); } } if ((opt_flags & (OPT_INODE | OPT_DEVICE)) == (OPT_INODE | OPT_DEVICE)) { - fprintf(stderr, "Cannot have -I and -D enabled together.\n"); + (void)fprintf(stderr, "Cannot have -I and -D enabled together.\n"); exit(EXIT_FAILURE); } if ((getuid() != 0) || (geteuid() != 0)) { - fprintf(stderr, "%s requires root privileges to run.\n", app_name); + (void)fprintf(stderr, "%s requires root privileges to run.\n", app_name); exit(EXIT_FAILURE); } memset(&new_action, 0, sizeof(new_action)); for (i = 0; signals[i] != -1; i++) { new_action.sa_handler = signals[i] == SIGUSR1 ? handle_sigusr1 : handle_sig; - sigemptyset(&new_action.sa_mask); + (void)sigemptyset(&new_action.sa_mask); new_action.sa_flags = 0; if (sigaction(signals[i], &new_action, NULL) < 0) { - fprintf(stderr, "sigaction failed: errno=%d (%s)\n", + (void)fprintf(stderr, "sigaction failed: errno=%d (%s)\n", errno, strerror(errno)); exit(EXIT_FAILURE); } @@ -1316,12 +1317,12 @@ ret = posix_memalign(&buffer, BUFFER_SIZE, BUFFER_SIZE); if (ret != 0 || buffer == NULL) { - fprintf(stderr,"cannot allocate 4K aligned buffer"); + (void)fprintf(stderr,"cannot allocate 4K aligned buffer"); exit(EXIT_FAILURE); } fan_fd = fnotify_event_init(); if (fan_fd < 0) { - fprintf(stderr, "cannot init fnotify"); + (void)fprintf(stderr, "cannot init fnotify"); exit(EXIT_FAILURE); }
