nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] Nano ported to nsr-tandem-nsk.


From: Bates, Tom
Subject: [Nano-devel] Nano ported to nsr-tandem-nsk.
Date: Thu, 19 Feb 2004 18:36:25 -0600

Please accept the diffs below.

Thanks,
Tom Bates



diff -ru nano-1.2.3/nano.c /usr/local/Floss/nano-1.2.3/nano.c
--- nano-1.2.3/nano.c   2003-12-27 10:35:21.000000000 -0600
+++ /usr/local/Floss/nano-1.2.3/nano.c  2004-02-19 18:28:15.000000000
-0600
@@ -19,6 +19,10 @@
  *
*
 
************************************************************************
**/
 
+#ifdef __TANDEM
+#include <floss.h>
+#endif
+
 #include "config.h"
 
 #include <stdio.h>
@@ -3089,7 +3093,11 @@
 #if !defined(ENABLE_NANORC) && defined(DISABLE_ROOTWRAP) &&
!defined(DISABLE_WR
APPING)
     /* if we don't have rcfile support, we're root, and
        --disable-wrapping-as-root is used, turn wrapping off */
+#ifdef __TANDEM
+    if (geteuid() == 65535)
+#else
     if (geteuid() == 0)
+#endif
        SET(NO_WRAP);
 #endif
 
@@ -3318,7 +3326,11 @@
        flags |= flags_cpy;
     }
 #if defined(DISABLE_ROOTWRAP) && !defined(DISABLE_WRAPPING)
+#ifdef __TANDEM
+    else if (geteuid() == 65535)
+#else
     else if (geteuid() == 0)
+#endif
        SET(NO_WRAP);
 #endif
 #endif /* ENABLE_NANORC */








reply via email to

[Prev in Thread] Current Thread [Next in Thread]