]> git.lyx.org Git - features.git/commitdiff
Compil fix.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 13 Dec 2007 11:25:45 +0000 (11:25 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 13 Dec 2007 11:25:45 +0000 (11:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22127 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index 119b51a70dba9858489e8bb05031fa24b7a7563c..779e4082f007232d5bf4470913954c2c42f510a9 100644 (file)
@@ -158,7 +158,7 @@ bool FileName::changePermission(unsigned long int mode) const
        }
 
 #if defined (HAVE_CHMOD) && defined (HAVE_MODE_T)
-       if (::chmod(file.toFilesystemEncoding().c_str(), mode_t(mode)) != 0) {
+       if (::chmod(toFilesystemEncoding().c_str(), mode_t(mode)) != 0) {
                LYXERR0("File " << *this << ": cannot change permission to "
                        << mode << ".");
                return false;