Blame SOURCES/cpaste-support-private.patch

4d702e
diff -aurp a/configuration.cpp b/configuration.cpp
4d702e
--- a/configuration.cpp	2018-09-13 04:38:20.000000000 +0000
4d702e
+++ b/configuration.cpp	2018-09-13 22:58:52.577802948 +0000
4d702e
@@ -125,6 +125,15 @@ void Configuration::Init()
4d702e
             Configuration::Author = lineauth;
4d702e
         }
4d702e
         fauth.close();
4d702e
+
4d702e
+        //private
4d702e
+        ifstream fpriv;
4d702e
+        fpriv.open(string(homedir + "/.cpaste/private").c_str());
4d702e
+        if(fpriv.good())
4d702e
+        {
4d702e
+            Configuration::Private = true;
4d702e
+        }
4d702e
+        fpriv.close();
4d702e
     }
4d702e
     if (Configuration::Author.length() < 1)
4d702e
     {