Changeset View
Changeset View
Standalone View
Standalone View
krArc/krarc.cpp
Context not available. | |||||
1160 | mode_t mode = 0; | 1160 | mode_t mode = 0; | ||
---|---|---|---|---|---|
1161 | // file type | 1161 | // file type | ||
1162 | if (perm[0] == 'd') mode |= S_IFDIR; | 1162 | if (perm[0] == 'd') mode |= S_IFDIR; | ||
1163 | #ifndef Q_WS_WIN | 1163 | #ifndef Q_OS_WIN | ||
1164 | if (perm[0] == 'l') mode |= S_IFLNK; | 1164 | if (perm[0] == 'l') mode |= S_IFLNK; | ||
1165 | #endif | 1165 | #endif | ||
1166 | if (perm[0] == '-') mode |= S_IFREG; | 1166 | if (perm[0] == '-') mode |= S_IFREG; | ||
Context not available. | |||||
1168 | if (perm[1] != '-') mode |= S_IRUSR; | 1168 | if (perm[1] != '-') mode |= S_IRUSR; | ||
1169 | if (perm[2] != '-') mode |= S_IWUSR; | 1169 | if (perm[2] != '-') mode |= S_IWUSR; | ||
1170 | if (perm[3] != '-') mode |= S_IXUSR; | 1170 | if (perm[3] != '-') mode |= S_IXUSR; | ||
1171 | #ifndef Q_WS_WIN | 1171 | #ifndef Q_OS_WIN | ||
1172 | // group permissions | 1172 | // group permissions | ||
1173 | if (perm[4] != '-') mode |= S_IRGRP; | 1173 | if (perm[4] != '-') mode |= S_IRGRP; | ||
1174 | if (perm[5] != '-') mode |= S_IWGRP; | 1174 | if (perm[5] != '-') mode |= S_IWGRP; | ||
Context not available. | |||||
1331 | owner = nextWord(line); | 1331 | owner = nextWord(line); | ||
1332 | group = nextWord(line); | 1332 | group = nextWord(line); | ||
1333 | // symlink destination | 1333 | // symlink destination | ||
1334 | #ifndef Q_WS_WIN | 1334 | #ifndef Q_OS_WIN | ||
1335 | if (S_ISLNK(mode)) { | 1335 | if (S_ISLNK(mode)) { | ||
1336 | // ignore the next 3 fields | 1336 | // ignore the next 3 fields | ||
1337 | nextWord(line); nextWord(line); nextWord(line); | 1337 | nextWord(line); nextWord(line); nextWord(line); | ||
Context not available. | |||||
1693 | } | 1693 | } | ||
1694 | } | 1694 | } | ||
1695 | // checking if it's an absolute path | 1695 | // checking if it's an absolute path | ||
1696 | #ifdef Q_WS_WIN | 1696 | #ifdef Q_OS_WIN | ||
1697 | if (cmd.length() > 2 && cmd[ 0 ].isLetter() && cmd[ 1 ] == ':') | 1697 | if (cmd.length() > 2 && cmd[ 0 ].isLetter() && cmd[ 1 ] == ':') | ||
1698 | return true; | 1698 | return true; | ||
1699 | #else | 1699 | #else | ||
Context not available. | |||||
1919 | QString path = url.adjusted(options).path(); | 1919 | QString path = url.adjusted(options).path(); | ||
1920 | REPLACE_DIR_SEP2(path); | 1920 | REPLACE_DIR_SEP2(path); | ||
1921 | 1921 | | |||
1922 | #ifdef Q_WS_WIN | 1922 | #ifdef Q_OS_WIN | ||
1923 | if (path.startsWith(DIR_SEPARATOR)) { | 1923 | if (path.startsWith(DIR_SEPARATOR)) { | ||
1924 | int p = 1; | 1924 | int p = 1; | ||
1925 | while (p < path.length() && path[ p ] == DIR_SEPARATOR_CHAR) | 1925 | while (p < path.length() && path[ p ] == DIR_SEPARATOR_CHAR) | ||
Context not available. |