Jason Baron <jba...@redhat.com> writes:

> On Thu, Dec 20, 2012 at 08:07:02PM +0000, Blue Swirl wrote:
>> On Thu, Dec 20, 2012 at 5:14 PM, Jason Baron <jba...@redhat.com> wrote:
>> > From: Jason Baron <jba...@redhat.com>
[...]
>> > @@ -172,9 +173,11 @@ void qtest_quit(QTestState *s)
>> >      unlink(s->pid_file);
>> >      unlink(s->socket_path);
>> >      unlink(s->qmp_socket_path);
>> > +    unlink(s->tmp_dir);
>> 
>> -EISDIR, rmdir() would be needed instead.
>> 
>
> 'unlink()' tested fine on Linux. But yes, it might not be as portable.

s/might not be as/isn't/

SUSv7:

[EPERM]
    The file named by path is a directory, and either the calling
    process does not have appropriate privileges, or the implementation
    prohibits using unlink() on directories.

[...]

Reply via email to