]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/gnu/updwtmp.c
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / gnu / updwtmp.c
index 71a3003c96c29f85ce806df6409b2aaf8b6dd88a..6dd0e99f37be7a075c7a5b3a140d587c12c6c061 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1998.
 
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
 
 #include <string.h>
 #include <unistd.h>
 
-#define TRANSFORM_UTMP_FILE_NAME(file_name) \
-    ((strcmp (file_name, _PATH_UTMP "x") == 0 \
-      && __access (_PATH_UTMP "x", F_OK) != 0) ? _PATH_UTMP : \
-     ((strcmp (file_name, _PATH_WTMP "x") == 0 \
-       && __access (_PATH_WTMP "x", F_OK) != 0) ? _PATH_WTMP : \
-      file_name))
+#define TRANSFORM_UTMP_FILE_NAME(file_name)    \
+  ((strcmp (file_name, _PATH_UTMP "x") == 0    \
+    && __access (_PATH_UTMP "x", F_OK) != 0)   \
+   ? _PATH_UTMP                                        \
+   : ((strcmp (file_name, _PATH_WTMP "x") == 0 \
+       && __access (_PATH_WTMP "x", F_OK) != 0)        \
+      ? _PATH_WTMP                             \
+      : file_name))
 
-#include <sysdeps/generic/updwtmp.c>
+#include <login/updwtmp.c>