Andrius Štikonas
13c063a150
Fix a possible null pointer dereference.
...
On some systems getlogin() function might fail to obtain user name.
For now just check whether pointer is nullptr. In that case suspending
plasma device automounter would not work but at least we will not crash.
In future it might make sense to try to use other methods of obtaining login
name, such as running "who am i".
BUG: 381987
2017-07-04 21:07:54 +01:00
Andrius Štikonas
6b31dd0e85
Remove accidentally commited debug code.
2017-06-14 15:26:02 +02:00
Andrius Štikonas
b98dcc90d8
Bump version to 3.1.1.
2017-06-14 00:20:13 +02:00
Andrius Štikonas
9252bc6156
seteuid has to be used instead of setuid.
...
According to setuid manual, seteuid has to be used to be able to
regain root privileges later.
2017-06-12 22:00:36 +02:00
Andrius Štikonas
63b5c8c34c
Suspend Plasma removable device automounting.
...
Before doing operations, we connect to DBus session of the original user
and stop kded module for device automounting.
BUG: 368175
2017-06-07 19:21:59 +02:00
Andrius Štikonas
40ff0861a8
Convert most of the remaining foreach cases.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
16a2d063e3
More work on C++11 for loops.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
a10c8d3aaa
Convert to C++11 for loop where it is safe (avoid detaching Qt objects).
2016-08-15 17:20:50 +01:00
Andrius Štikonas
ea99bcc76f
Correctly report used space of FAT partitions whose dirty bit is set.
...
BUG: 366313
2016-08-02 21:41:09 +01:00
Andrius Štikonas
3d57b3211a
Convert remaining signals to the new syntax.
2016-05-24 01:37:15 +01:00
Andrius Štikonas
e0c23f443b
Update copyright.
2016-03-02 19:00:31 +00:00
Teo Mrnjavac
de27f840bf
Always use nullptr instead of NULL because it is type-safe.
2015-07-22 15:48:03 +02:00
Andrius Štikonas
626f560e52
Format kpmcore code using KDE style.
2015-07-13 17:16:36 +03:00
Teo Mrnjavac
3bbce2865f
Revert "Format kpmcore code using KDE style."
...
This reverts commit 21b569e499
.
2015-07-13 16:03:36 +02:00
Andrius Štikonas
21b569e499
Format kpmcore code using KDE style.
2015-07-13 17:02:13 +03:00
Andrius Štikonas
1ef6fa8131
Move kpmcore library into its own repository.
2015-06-04 01:29:22 +01:00