- Subject: Re: Permission problems
- From: Guto <gutojm@xxxxxxxxx>
- Date: Wed, 13 Oct 2004 15:12:58 -0300
Whell, I fix the problem: changind the unix.c and file.c, on chmod
changind 0777 by 07777
This is the diff:
diff -ruN jed.orig/work/jed-0.99-16/src/file.c jed/work/jed-0.99-16/src/file.c
--- jed.orig/work/jed-0.99-16/src/file.c Sun Oct 20 03:55:31 2002
+++ jed/work/jed-0.99-16/src/file.c Wed Oct 13 15:06:22 2004
@@ -173,7 +173,7 @@
case FAB$C_STMLF: rfm = "stmlf"; break;
case FAB$C_STMCR: rfm = "stmcr"; break;
}
- mode = s.st_mode & 0777;
+ mode = s.st_mode & 07777;
}
else strcpy (rat_buf, "rat=cr");
@@ -1729,7 +1729,7 @@
#ifdef REAL_UNIX_SYSTEM
int u;
- u = umask (mask & 0777);
+ u = umask (mask & 07777);
if (default_umask == 0) default_umask = u;
#endif
}
diff -ruN jed.orig/work/jed-0.99-16/src/unix.c jed/work/jed-0.99-16/src/unix.c
--- jed.orig/work/jed-0.99-16/src/unix.c Sun Oct 20 03:55:31 2002
+++ jed/work/jed-0.99-16/src/unix.c Wed Oct 13 15:06:22 2004
@@ -722,7 +722,7 @@
# endif
#endif
- *mode = m & 0777;
+ *mode = m & 07777;
if (S_ISDIR(m)) return (2);
return(1);
On Wed, 13 Oct 2004 11:53:14 -0300, Guto <gutojm@xxxxxxxxx> wrote:
> Hello!
>
> I have a file with theses permissions above:
>
> -rwSr--r-- 1 root root 18 Oct 13 11:15 teste
>
> (note the S, of suid permission)
>
> After I edit the file and save the permissions changes to:
>
> -rw-r--r-- 1 root root 26 Oct 13 11:50 teste
>
> (the suid gone!!!)
>
> How I fix it?
>
> Thanks,
>
> Guto
>
--
Guto
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2004 date index]
[2004 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]