summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
753b6e0)
SCCS-vsn: sys/kern/vfs_syscalls.c 7.5
SCCS-vsn: sys/ufs/ffs/ffs_vnops.c 7.5
SCCS-vsn: sys/ufs/ffs/ufs_vnops.c 7.5
SCCS-vsn: sys/ufs/lfs/lfs_vnops.c 7.5
SCCS-vsn: sys/ufs/ufs/ufs_vnops.c 7.5
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)vfs_syscalls.c 7.4 (Berkeley) %G%
+ * @(#)vfs_syscalls.c 7.5 (Berkeley) %G%
+ if (ip->i_nlink == LINK_MAX - 1) {
+ u.u_error = EMLINK;
+ iput(ip);
+ return;
+ }
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)ffs_vnops.c 7.4 (Berkeley) %G%
+ * @(#)ffs_vnops.c 7.5 (Berkeley) %G%
+ if (ip->i_nlink == LINK_MAX - 1) {
+ u.u_error = EMLINK;
+ iput(ip);
+ return;
+ }
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)ufs_vnops.c 7.4 (Berkeley) %G%
+ * @(#)ufs_vnops.c 7.5 (Berkeley) %G%
+ if (ip->i_nlink == LINK_MAX - 1) {
+ u.u_error = EMLINK;
+ iput(ip);
+ return;
+ }
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)lfs_vnops.c 7.4 (Berkeley) %G%
+ * @(#)lfs_vnops.c 7.5 (Berkeley) %G%
+ if (ip->i_nlink == LINK_MAX - 1) {
+ u.u_error = EMLINK;
+ iput(ip);
+ return;
+ }
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)ufs_vnops.c 7.4 (Berkeley) %G%
+ * @(#)ufs_vnops.c 7.5 (Berkeley) %G%
+ if (ip->i_nlink == LINK_MAX - 1) {
+ u.u_error = EMLINK;
+ iput(ip);
+ return;
+ }
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);
ip->i_nlink++;
ip->i_flag |= ICHG;
iupdat(ip, &time, &time, 1);