Fix typo
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 8 Dec 2022 14:45:45 +0000 (15:45 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Tue, 13 Dec 2022 08:22:58 +0000 (09:22 +0100)
Found by Lintian.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
admin/osx/gen_sym_files.py
src/common/vfs.cpp
src/gui/folderman.cpp
test/testsynccfapi.cpp
test/testsyncjournaldb.cpp
test/testsyncvirtualfiles.cpp
test/testsyncxattr.cpp

index 1d9fa24890532aaf9dd78a55e6fa969b11b03bf1..beaece4dc5f226804c2212e08fca5b556db473a0 100755 (executable)
@@ -31,7 +31,7 @@ def extractDeps(macho):
         if m:
             path = resolvePath(m.group(0))
             if not os.path.exists(path):
-                logging.warning("Non-existant file found in dependencies, ignoring: [%s]", path)
+                logging.warning("Non-existent file found in dependencies, ignoring: [%s]", path)
                 continue
             deps.append(path)
     return deps
index 593c4c3bcdc6a095f4ed361d31a70a41f9e0c42e..e887937f066dcc285cbfa09cb303260386f3279a 100644 (file)
@@ -238,7 +238,7 @@ std::unique_ptr<Vfs> OCC::createVfsFromPlugin(Vfs::Mode mode)
     const auto pluginPath = pluginFileName(QStringLiteral("vfs"), name);
 
     if (!isVfsPluginAvailable(mode)) {
-        qCCritical(lcPlugin) << "Could not load plugin: not existant or bad metadata" << pluginPath;
+        qCCritical(lcPlugin) << "Could not load plugin: not existent or bad metadata" << pluginPath;
         return nullptr;
     }
 
index 763cb61c18be70b59296b7fffb709b123803994f..a5a13a51dc3de4cea2be8e384c7e78dda73ac39e 100644 (file)
@@ -1638,7 +1638,7 @@ static QString canonicalPath(const QString &path)
         const auto parentPath = selFile.dir().path();
 
         // It's possible for the parentPath to match the path
-        // (possibly we've arrived at a non-existant drive root on Windows)
+        // (possibly we've arrived at a non-existent drive root on Windows)
         // and recursing would be fatal.
         if (parentPath == path) {
             return path;
index 43f021116bc300380da93ba5e82a85d26475600f..db32a5d858eb7c0239f53b11128b1f27d096f7c9 100644 (file)
@@ -991,7 +991,7 @@ private slots:
         QCOMPARE(*vfs->availability("online"), VfsItemAvailability::OnlineOnly);
         QCOMPARE(*vfs->availability("local"), VfsItemAvailability::AlwaysLocal);
 
-        auto r = vfs->availability("nonexistant");
+        auto r = vfs->availability("nonexistent");
         QVERIFY(!r);
         QCOMPARE(r.error(), Vfs::AvailabilityError::NoSuchItem);
     }
index 387ec99d039f1cf4c993246c93e53e503d8cee53..405ab269d38317a520516751c1601f4c0ba9d247 100644 (file)
@@ -46,7 +46,7 @@ private slots:
     void testFileRecord()
     {
         SyncJournalFileRecord record;
-        QVERIFY(_db.getFileRecord(QByteArrayLiteral("nonexistant"), &record));
+        QVERIFY(_db.getFileRecord(QByteArrayLiteral("nonexistent"), &record));
         QVERIFY(!record.isValid());
 
         record._path = "foo";
@@ -129,7 +129,7 @@ private slots:
     void testDownloadInfo()
     {
         using Info = SyncJournalDb::DownloadInfo;
-        Info record = _db.getDownloadInfo("nonexistant");
+        Info record = _db.getDownloadInfo("nonexistent");
         QVERIFY(!record._valid);
 
         record._errorCount = 5;
@@ -149,7 +149,7 @@ private slots:
     void testUploadInfo()
     {
         using Info = SyncJournalDb::UploadInfo;
-        Info record = _db.getUploadInfo("nonexistant");
+        Info record = _db.getUploadInfo("nonexistent");
         QVERIFY(!record._valid);
 
         record._errorCount = 5;
@@ -382,31 +382,31 @@ private slots:
         QCOMPARE(get("local"), PinState::AlwaysLocal);
         QCOMPARE(get("online"), PinState::OnlineOnly);
         QCOMPARE(get("inherit"), PinState::AlwaysLocal);
-        QCOMPARE(get("nonexistant"), PinState::AlwaysLocal);
+        QCOMPARE(get("nonexistent"), PinState::AlwaysLocal);
         QCOMPARE(get("online/local"), PinState::AlwaysLocal);
         QCOMPARE(get("local/online"), PinState::OnlineOnly);
         QCOMPARE(get("inherit/local"), PinState::AlwaysLocal);
         QCOMPARE(get("inherit/online"), PinState::OnlineOnly);
         QCOMPARE(get("inherit/inherit"), PinState::AlwaysLocal);
-        QCOMPARE(get("inherit/nonexistant"), PinState::AlwaysLocal);
+        QCOMPARE(get("inherit/nonexistent"), PinState::AlwaysLocal);
 
         // Inheriting checks, level 1
         QCOMPARE(get("local/inherit"), PinState::AlwaysLocal);
-        QCOMPARE(get("local/nonexistant"), PinState::AlwaysLocal);
+        QCOMPARE(get("local/nonexistent"), PinState::AlwaysLocal);
         QCOMPARE(get("online/inherit"), PinState::OnlineOnly);
-        QCOMPARE(get("online/nonexistant"), PinState::OnlineOnly);
+        QCOMPARE(get("online/nonexistent"), PinState::OnlineOnly);
 
         // Inheriting checks, level 2
         QCOMPARE(get("local/inherit/inherit"), PinState::AlwaysLocal);
         QCOMPARE(get("local/local/inherit"), PinState::AlwaysLocal);
-        QCOMPARE(get("local/local/nonexistant"), PinState::AlwaysLocal);
+        QCOMPARE(get("local/local/nonexistent"), PinState::AlwaysLocal);
         QCOMPARE(get("local/online/inherit"), PinState::OnlineOnly);
-        QCOMPARE(get("local/online/nonexistant"), PinState::OnlineOnly);
+        QCOMPARE(get("local/online/nonexistent"), PinState::OnlineOnly);
         QCOMPARE(get("online/inherit/inherit"), PinState::OnlineOnly);
         QCOMPARE(get("online/local/inherit"), PinState::AlwaysLocal);
-        QCOMPARE(get("online/local/nonexistant"), PinState::AlwaysLocal);
+        QCOMPARE(get("online/local/nonexistent"), PinState::AlwaysLocal);
         QCOMPARE(get("online/online/inherit"), PinState::OnlineOnly);
-        QCOMPARE(get("online/online/nonexistant"), PinState::OnlineOnly);
+        QCOMPARE(get("online/online/nonexistent"), PinState::OnlineOnly);
 
         // Spot check the recursive variant
         QCOMPARE(getRecursive(""), PinState::Inherited);
@@ -427,12 +427,12 @@ private slots:
         QCOMPARE(get("local"), PinState::AlwaysLocal);
         QCOMPARE(get("online"), PinState::OnlineOnly);
         QCOMPARE(get("inherit"), PinState::OnlineOnly);
-        QCOMPARE(get("nonexistant"), PinState::OnlineOnly);
+        QCOMPARE(get("nonexistent"), PinState::OnlineOnly);
         make("", PinState::AlwaysLocal);
         QCOMPARE(get("local"), PinState::AlwaysLocal);
         QCOMPARE(get("online"), PinState::OnlineOnly);
         QCOMPARE(get("inherit"), PinState::AlwaysLocal);
-        QCOMPARE(get("nonexistant"), PinState::AlwaysLocal);
+        QCOMPARE(get("nonexistent"), PinState::AlwaysLocal);
 
         // Wiping
         QCOMPARE(getRaw("local/local"), PinState::AlwaysLocal);
index ada90495eb681518dba22ded4a0c6fc37e84e3d8..ea9cded228a1c89c7d462a62ea720cfef49ca4e8 100644 (file)
@@ -1367,7 +1367,7 @@ private slots:
         QCOMPARE(*vfs->availability("online"), VfsItemAvailability::OnlineOnly);
         QCOMPARE(*vfs->availability("local"), VfsItemAvailability::AlwaysLocal);
 
-        auto r = vfs->availability("nonexistant");
+        auto r = vfs->availability("nonexistent");
         QVERIFY(!r);
         QCOMPARE(r.error(), Vfs::AvailabilityError::NoSuchItem);
     }
index 091393057e959307beae394a42de384dadb9d847..670478a417e6db16c13b07cc2e91e39386806f38 100644 (file)
@@ -962,7 +962,7 @@ private slots:
         QCOMPARE(*vfs->availability("online"), VfsItemAvailability::OnlineOnly);
         QCOMPARE(*vfs->availability("local"), VfsItemAvailability::AlwaysLocal);
 
-        auto r = vfs->availability("nonexistant");
+        auto r = vfs->availability("nonexistent");
         QVERIFY(!r);
         QCOMPARE(r.error(), Vfs::AvailabilityError::NoSuchItem);
     }