Amanda-Users

Re: amcheck gets permission denied error

2008-04-14 23:43:38
Subject: Re: amcheck gets permission denied error
From: "Dustin J. Mitchell" <dustin AT zmanda DOT com>
To: "Chris Hoogendyk" <hoogendyk AT bio.umass DOT edu>
Date: Mon, 14 Apr 2008 19:56:58 -0400
That error is coming from client-src/sendbackup.c:
 821         access_result = access(device, amode);
 822         access_type = "access";
 823
 824         if(access_result == -1) {
 825             err = vstralloc("could not ", access_type, " ", qdevice,
 826                         " (", qdisk, "): ", strerror(errno), NULL);
 827         }

where 'amode' is R_OK.  You can simulate this with:
perl -MPOSIX -e 'print "yes\n" if POSIX::access("/", &POSIX::R_OK)'

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com

<Prev in Thread] Current Thread [Next in Thread>