Commit 85cd8da5 authored by Simon Persson's avatar Simon Persson

Allow user to select backup sources under /run.

User could have an internal drive not listed in fstab but instead mounted by KDE/udisks under /run/media. It should still be possible to use as a source for backups.
Fixes #14.
parent 63948c70
......@@ -67,12 +67,12 @@ bool isForbiddenPath( const QString& path )
{
QString pathWithSlash = ensureTrailingSlash( path );
QFileInfo fi( pathWithSlash );
return( pathWithSlash.startsWith( QLatin1String( "/proc/" ) ) ||
pathWithSlash.startsWith( QLatin1String( "/dev/" ) ) ||
pathWithSlash.startsWith( QLatin1String( "/sys/" ) ) ||
pathWithSlash.startsWith( QLatin1String( "/run/" ) ) ||
return (pathWithSlash.startsWith(QLatin1String("/proc/")) ||
pathWithSlash.startsWith(QLatin1String("/dev/")) ||
pathWithSlash.startsWith(QLatin1String("/sys/")) ||
!fi.isReadable() ||
!fi.isExecutable() );
!fi.isExecutable()
);
}
bool setContainsSubdir( QSet<QString> pSet, const QString &pParentDir)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment