summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/filePermissions.cpp2
-rw-r--r--core/apps/textedit/textedit.cpp2
2 files changed, 2 insertions, 2 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
150 if( fi.permission( QFileInfo::WriteOther)) { CheckBox1_8->setChecked(true); } 150 if( fi.permission( QFileInfo::WriteOther)) { CheckBox1_8->setChecked(true); }
151 if( fi.permission( QFileInfo::ExeOther)) { CheckBox1_8_2->setChecked(true); } 151 if( fi.permission( QFileInfo::ExeOther)) { CheckBox1_8_2->setChecked(true); }
152 152
153 lstat(file.latin1(), &buf); 153 stat(file.latin1(), &buf);
154 mode = buf.st_mode; 154 mode = buf.st_mode;
155 modeStr.sprintf("%#o", buf.st_mode & ~(S_IFMT) ); 155 modeStr.sprintf("%#o", buf.st_mode & ~(S_IFMT) );
156 ModeLine->setText(modeStr); 156 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()
705 705
706 struct stat buf; 706 struct stat buf;
707 mode_t mode; 707 mode_t mode;
708 lstat(file.latin1(), &buf); 708 stat(file.latin1(), &buf);
709 mode = buf.st_mode; 709 mode = buf.st_mode;
710 710
711 doc->setName( name); 711 doc->setName( name);