author | llornkcor <llornkcor> | 2002-02-24 17:15:20 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-24 17:15:20 (UTC) |
commit | c8c16041847fa96ffc4283fcedf4431917bc7bf5 (patch) (side-by-side diff) | |
tree | e26e910dd0c62038a54c1d91b24c2515a15a601e | |
parent | 8b61e69b52e8bb046f23d8dea734edcdc90e805e (diff) | |
download | opie-c8c16041847fa96ffc4283fcedf4431917bc7bf5.zip opie-c8c16041847fa96ffc4283fcedf4431917bc7bf5.tar.gz opie-c8c16041847fa96ffc4283fcedf4431917bc7bf5.tar.bz2 |
changed lstat to stat
-rw-r--r-- | core/apps/textedit/filePermissions.cpp | 2 | ||||
-rw-r--r-- | core/apps/textedit/textedit.cpp | 2 | ||||
-rw-r--r-- | noncore/unsupported/filebrowser/filePermissions.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/apps/textedit/filePermissions.cpp b/core/apps/textedit/filePermissions.cpp index 1938b84..5af3971 100644 --- a/core/apps/textedit/filePermissions.cpp +++ b/core/apps/textedit/filePermissions.cpp @@ -150,7 +150,7 @@ filePermissions::filePermissions( QWidget* parent, const char* name, bool modal if( fi.permission( QFileInfo::WriteOther)) { CheckBox1_8->setChecked(true); } if( fi.permission( QFileInfo::ExeOther)) { CheckBox1_8_2->setChecked(true); } - lstat(file.latin1(), &buf); + stat(file.latin1(), &buf); mode = buf.st_mode; modeStr.sprintf("%#o", buf.st_mode & ~(S_IFMT) ); ModeLine->setText(modeStr); diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 515fcdc..603f032 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -705,7 +705,7 @@ bool TextEdit::save() struct stat buf; mode_t mode; - lstat(file.latin1(), &buf); + stat(file.latin1(), &buf); mode = buf.st_mode; doc->setName( name); diff --git a/noncore/unsupported/filebrowser/filePermissions.cpp b/noncore/unsupported/filebrowser/filePermissions.cpp index 1938b84..5af3971 100644 --- a/noncore/unsupported/filebrowser/filePermissions.cpp +++ b/noncore/unsupported/filebrowser/filePermissions.cpp @@ -150,7 +150,7 @@ filePermissions::filePermissions( QWidget* parent, const char* name, bool modal if( fi.permission( QFileInfo::WriteOther)) { CheckBox1_8->setChecked(true); } if( fi.permission( QFileInfo::ExeOther)) { CheckBox1_8_2->setChecked(true); } - lstat(file.latin1(), &buf); + stat(file.latin1(), &buf); mode = buf.st_mode; modeStr.sprintf("%#o", buf.st_mode & ~(S_IFMT) ); ModeLine->setText(modeStr); |