]> git.lyx.org Git - features.git/commitdiff
* FileName::changePermission(): upon Enrico's advice, don't check file writability...
authorAbdelrazak Younes <younes@lyx.org>
Mon, 17 Dec 2007 16:52:24 +0000 (16:52 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 17 Dec 2007 16:52:24 +0000 (16:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22190 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index 780a4610fac618925fe75eb5ac8e79a3565d7084..c855d4a7e5b31f5cd28854ac46a585f09bfc02e5 100644 (file)
@@ -199,11 +199,6 @@ bool FileName::moveTo(FileName const & name) const
 
 bool FileName::changePermission(unsigned long int mode) const
 {
-       if (!isWritable()) {
-               LYXERR0("File " << *this << " is not writable!");
-               return false;
-       }
-
 #if defined (HAVE_CHMOD) && defined (HAVE_MODE_T)
        if (::chmod(toFilesystemEncoding().c_str(), mode_t(mode)) != 0) {
                LYXERR0("File " << *this << ": cannot change permission to "