Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2007 10:48:49 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 122469 for review
Message-ID:  <200706281048.l5SAmnUc037247@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122469

Change 122469 by rdivacky@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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706281048.l5SAmnUc037247>