diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-01-09 09:37:37 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-01-09 09:37:37 +0200 |
commit | 346535b7d14be92dd2b853058039bca67bb380dd (patch) | |
tree | b9c72955dd7eed72c5949751fbad031fd92a040d /src/utmp.c | |
parent | 489432d354d88049afe4af54c29965d382d67f7a (diff) | |
download | pies-346535b7d14be92dd2b853058039bca67bb380dd.tar.gz pies-346535b7d14be92dd2b853058039bca67bb380dd.tar.bz2 |
piesctl: optionally bind to local IP
* configure.ac (GRECS_SETUP): Request sockaddr-list
* grecs: Upgrade.
* po/POTFILES.in: Remove meta.c
* src/piesctl-cl.opt: Use client.url
* src/piesctl.c (client_conn): New struct.
(instance_keywords,piesctl_keywords): New keyword: "source".
(parse_config): Initialize grecs_sockaddr_hints.
(shttp_connect): Optionally bind to the selected local IP
before connecting.
* src/utmp.c (write_wtmpx,write_utmpx): Remove spurious notice.
Diffstat (limited to 'src/utmp.c')
-rw-r--r-- | src/utmp.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -105,18 +105,16 @@ fill_utmp (UTMPX *utmp, #endif } - -int wtmpxreboot = 0; - void write_wtmpx (int type, const char *user, const char *id, pid_t pid, const char *line) { UTMPX utmp; + static int wtmpxreboot = 0; + debug (2, (_("cannot open %s for writing"), WTMP_FILE)); if (access (WTMP_FILE, W_OK)) { - logmsg (LOG_NOTICE, _("cannot open %s for writing"), WTMP_FILE); if (type == BOOT_TIME) wtmpxreboot++; return; @@ -131,17 +129,16 @@ write_wtmpx (int type, const char *user, const char *id, pid_t pid, pies_updwtmpx (WTMP_FILE, &utmp); } -int utmpreboot = 0; - void write_utmpx (int type, const char *user, const char *id, pid_t pid, const char *line) { UTMPX utmp; + static int utmpreboot = 0; if (access (UTMP_FILE, W_OK)) { - logmsg (LOG_NOTICE, _("cannot open %s for writing"), UTMP_FILE); + debug (1, (_("cannot open %s for writing"), UTMP_FILE)); if (type == BOOT_TIME) utmpreboot++; return; |