Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 432596
Collapse All | Expand All

(-)src/kurooinit.cpp (-6 / +5 lines)
Lines 81-87 Link Here
81
				exit(0);
81
				exit(0);
82
			} else {
82
			} else {
83
				chmod( kurooDir.toAscii(), 0770 );
83
				chmod( kurooDir.toAscii(), 0770 );
84
				chown( kurooDir.toAscii(), portageGid->gr_gid, portageUid->pw_uid );
84
				KIO::chown( KUrl(kurooDir), portageGid->gr_name, portageUid->pw_name);
85
			}
85
			}
86
86
87
			d.setCurrent( kurooDir );
87
			d.setCurrent( kurooDir );
Lines 99-105 Link Here
99
		}
99
		}
100
		else {
100
		else {
101
			chmod( backupDir.toAscii(), 0770 );
101
			chmod( backupDir.toAscii(), 0770 );
102
			chown( backupDir.toAscii(), portageGid->gr_gid, portageUid->pw_uid );
102
			KIO::chown( KUrl(backupDir), portageGid->gr_name, portageUid->pw_name);
103
		}
103
		}
104
	}
104
	}
105
105
Lines 110-116 Link Here
110
	QString logFile = LogSingleton::Instance()->init( this );
110
	QString logFile = LogSingleton::Instance()->init( this );
111
	if ( !logFile.isEmpty() ) {
111
	if ( !logFile.isEmpty() ) {
112
		chmod( logFile.toAscii(), 0660 );
112
		chmod( logFile.toAscii(), 0660 );
113
		chown( logFile.toAscii(), portageGid->gr_gid, portageUid->pw_uid );
113
		KIO::chown( KUrl(logFile), portageGid->gr_name, portageUid->pw_name );
114
	}
114
	}
115
115
116
	// Initialize the database
116
	// Initialize the database
Lines 136-142 Link Here
136
136
137
	// Give permissions to portage:portage to access the db also
137
	// Give permissions to portage:portage to access the db also
138
	chmod( databaseFile.toAscii(), 0660 );
138
	chmod( databaseFile.toAscii(), 0660 );
139
	chown( databaseFile.toAscii(), portageGid->gr_gid, portageUid->pw_uid );
139
	KIO::chown( KUrl(databaseFile), portageGid->gr_name, portageUid->pw_name );
140
140
141
    // Initialize singletons objects
141
    // Initialize singletons objects
142
	SignalistSingleton::Instance()->init( this );
142
	SignalistSingleton::Instance()->init( this );
Lines 149-155 Link Here
149
	FileWatcherSingleton::Instance()->init( this );
149
	FileWatcherSingleton::Instance()->init( this );
150
150
151
	//Load packages in case /etc/portage.* changed
151
	//Load packages in case /etc/portage.* changed
152
	//PortageFilesSingleton::Instance()->loadPackageFiles();
152
	PortageFilesSingleton::Instance()->loadPackageFiles();
153
}
153
}
154
154
155
KurooInit::~KurooInit()
155
KurooInit::~KurooInit()
156
-----------------------------------------------------------------------

Return to bug 432596