PERFORCE change 122469 for review

Roman Divacky rdivacky at FreeBSD.org
Thu Jun 28 10:48:50 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=122469

Change 122469 by rdivacky at rdivacky_witten on 2007/06/28 10:48:34

	Use the linux inconsistency only when unlinking a file.
	
	Pointed out by: rwatson

Affected files ...

.. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_file.c#16 edit

Differences ...

==== //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_file.c#16 (text+ko) ====

@@ -648,7 +648,7 @@
 		error = kern_rmdirat(td, dfd, path, UIO_SYSSPACE);
 	else
 		error = kern_unlinkat(td, dfd, path, UIO_SYSSPACE);
-	if (error == EPERM)
+	if (error == EPERM && !(args->flag & LINUX_AT_REMOVEDIR))
 		/* Introduce POSIX noncompliant behaviour of Linux */
 		if (kern_statat(td, dfd, path, UIO_SYSSPACE, &st) == 0)
 			if (S_ISDIR(st.st_mode))


More information about the p4-projects mailing list