lstat <-> stat
authorBill Joy <root@ucbvax.Berkeley.EDU>
Fri, 2 Apr 1982 02:48:05 +0000 (18:48 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Fri, 2 Apr 1982 02:48:05 +0000 (18:48 -0800)
SCCS-vsn: sys/kern/vfs_syscalls.c 4.22
SCCS-vsn: sys/ufs/ffs/ffs_vnops.c 4.22
SCCS-vsn: sys/ufs/ffs/ufs_vnops.c 4.22
SCCS-vsn: sys/ufs/lfs/lfs_vnops.c 4.22
SCCS-vsn: sys/ufs/ufs/ufs_vnops.c 4.22

usr/src/sys/kern/vfs_syscalls.c
usr/src/sys/ufs/ffs/ffs_vnops.c
usr/src/sys/ufs/ffs/ufs_vnops.c
usr/src/sys/ufs/lfs/lfs_vnops.c
usr/src/sys/ufs/ufs/ufs_vnops.c

index e89fd6d..70204a0 100644 (file)
@@ -1,4 +1,4 @@
-/*     vfs_syscalls.c  4.21    82/03/18        */
+/*     vfs_syscalls.c  4.22    82/04/01        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -409,7 +409,7 @@ fstat()
 }
 
 /*
 }
 
 /*
- * Stat system call.  This version does not follow links.
+ * Stat system call; this follows links.
  */
 stat()
 {
  */
 stat()
 {
@@ -420,7 +420,7 @@ stat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 0);
+       ip = namei(uchar, 0, 1);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
@@ -428,7 +428,7 @@ stat()
 }
 
 /*
 }
 
 /*
- * Lstat system call.  This version does follow links.
+ * Lstat system call; like stat but doesn't follow links.
  */
 lstat()
 {
  */
 lstat()
 {
@@ -439,7 +439,7 @@ lstat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 1);
+       ip = namei(uchar, 0, 0);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
index 4743c78..d8c6b82 100644 (file)
@@ -1,4 +1,4 @@
-/*     ffs_vnops.c     4.21    82/03/18        */
+/*     ffs_vnops.c     4.22    82/04/01        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -409,7 +409,7 @@ fstat()
 }
 
 /*
 }
 
 /*
- * Stat system call.  This version does not follow links.
+ * Stat system call; this follows links.
  */
 stat()
 {
  */
 stat()
 {
@@ -420,7 +420,7 @@ stat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 0);
+       ip = namei(uchar, 0, 1);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
@@ -428,7 +428,7 @@ stat()
 }
 
 /*
 }
 
 /*
- * Lstat system call.  This version does follow links.
+ * Lstat system call; like stat but doesn't follow links.
  */
 lstat()
 {
  */
 lstat()
 {
@@ -439,7 +439,7 @@ lstat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 1);
+       ip = namei(uchar, 0, 0);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
index ece9c45..abc15ff 100644 (file)
@@ -1,4 +1,4 @@
-/*     ufs_vnops.c     4.21    82/03/18        */
+/*     ufs_vnops.c     4.22    82/04/01        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -409,7 +409,7 @@ fstat()
 }
 
 /*
 }
 
 /*
- * Stat system call.  This version does not follow links.
+ * Stat system call; this follows links.
  */
 stat()
 {
  */
 stat()
 {
@@ -420,7 +420,7 @@ stat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 0);
+       ip = namei(uchar, 0, 1);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
@@ -428,7 +428,7 @@ stat()
 }
 
 /*
 }
 
 /*
- * Lstat system call.  This version does follow links.
+ * Lstat system call; like stat but doesn't follow links.
  */
 lstat()
 {
  */
 lstat()
 {
@@ -439,7 +439,7 @@ lstat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 1);
+       ip = namei(uchar, 0, 0);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
index 6dd276e..5b0008a 100644 (file)
@@ -1,4 +1,4 @@
-/*     lfs_vnops.c     4.21    82/03/18        */
+/*     lfs_vnops.c     4.22    82/04/01        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -409,7 +409,7 @@ fstat()
 }
 
 /*
 }
 
 /*
- * Stat system call.  This version does not follow links.
+ * Stat system call; this follows links.
  */
 stat()
 {
  */
 stat()
 {
@@ -420,7 +420,7 @@ stat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 0);
+       ip = namei(uchar, 0, 1);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
@@ -428,7 +428,7 @@ stat()
 }
 
 /*
 }
 
 /*
- * Lstat system call.  This version does follow links.
+ * Lstat system call; like stat but doesn't follow links.
  */
 lstat()
 {
  */
 lstat()
 {
@@ -439,7 +439,7 @@ lstat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 1);
+       ip = namei(uchar, 0, 0);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
index ece9c45..abc15ff 100644 (file)
@@ -1,4 +1,4 @@
-/*     ufs_vnops.c     4.21    82/03/18        */
+/*     ufs_vnops.c     4.22    82/04/01        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -409,7 +409,7 @@ fstat()
 }
 
 /*
 }
 
 /*
- * Stat system call.  This version does not follow links.
+ * Stat system call; this follows links.
  */
 stat()
 {
  */
 stat()
 {
@@ -420,7 +420,7 @@ stat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 0);
+       ip = namei(uchar, 0, 1);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
@@ -428,7 +428,7 @@ stat()
 }
 
 /*
 }
 
 /*
- * Lstat system call.  This version does follow links.
+ * Lstat system call; like stat but doesn't follow links.
  */
 lstat()
 {
  */
 lstat()
 {
@@ -439,7 +439,7 @@ lstat()
        } *uap;
 
        uap = (struct a *)u.u_ap;
        } *uap;
 
        uap = (struct a *)u.u_ap;
-       ip = namei(uchar, 0, 1);
+       ip = namei(uchar, 0, 0);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);
        if (ip == NULL)
                return;
        stat1(ip, uap->sb);