From: Abdelrazak Younes Date: Thu, 13 Dec 2007 11:25:45 +0000 (+0000) Subject: Compil fix. X-Git-Tag: 1.6.10~6938 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4164f547b2296417e510fce5c8a0eb6284b06cd5;p=features.git Compil fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22127 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 119b51a70d..779e4082f0 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -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;