Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file_unix.cpp
Show First 20 Lines • Show All 796 Lines • ▼ Show 20 Line(s) | 749 | { | |||
---|---|---|---|---|---|
797 | } else { | 797 | } else { | ||
798 | finished(); | 798 | finished(); | ||
799 | } | 799 | } | ||
800 | } | 800 | } | ||
801 | 801 | | |||
802 | void FileProtocol::stat(const QUrl &url) | 802 | void FileProtocol::stat(const QUrl &url) | ||
803 | { | 803 | { | ||
804 | if (!isLocalFileSameHost(url)) { | 804 | if (!isLocalFileSameHost(url)) { | ||
805 | QUrl redir(url); | 805 | redirect(url); | ||
806 | redir.setScheme(config()->readEntry("DefaultRemoteProtocol", "smb")); | | |||
807 | redirection(redir); | | |||
808 | // qDebug() << "redirecting to " << redir; | | |||
809 | finished(); | | |||
810 | return; | 806 | return; | ||
811 | } | 807 | } | ||
812 | 808 | | |||
813 | /* directories may not have a slash at the end if | 809 | /* directories may not have a slash at the end if | ||
814 | * we want to stat() them; it requires that we | 810 | * we want to stat() them; it requires that we | ||
815 | * change into it .. which may not be allowed | 811 | * change into it .. which may not be allowed | ||
816 | * stat("/is/unaccessible") -> rwx------ | 812 | * stat("/is/unaccessible") -> rwx------ | ||
817 | * stat("/is/unaccessible/") -> EPERM H.Z. | 813 | * stat("/is/unaccessible/") -> EPERM H.Z. | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |