]> granicus.if.org Git - sudo/commitdiff
Don't disable large file support for Linux, just SVR4-style /proc.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 2 Sep 2016 14:05:07 +0000 (08:05 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 2 Sep 2016 14:05:07 +0000 (08:05 -0600)
Otherwise, stat(2) may fail on Linux when running a 32-bit sudo
on a 64-bit machine.  Bug #755

src/ttyname.c

index c2ec5248dd5c383a2e1a56f683acc5907bb63476..1f99efed7bc52c007eabe1dc82cf33bcfedc6a6d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2015 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2012-2016 Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -16,8 +16,8 @@
 
 #include <config.h>
 
-/* Large files not supported by procfs.h */
-#if defined(HAVE_PROCFS_H) || defined(HAVE_SYS_PROCFS_H)
+/* Large files not supported by procfs.h on Solaris. */
+#if defined(HAVE_STRUCT_PSINFO_PR_TTYDEV)
 # undef _FILE_OFFSET_BITS
 # undef _LARGE_FILES
 #endif