{
Name.clear();
Password.clear();
+ // FIXME: Uid and Gid is unsigned
Uid= -1;
Gid= -1;
Gecos.clear();
*/
bool User::is_valid() const
{
+ // FIXME: Uid and Gid is unsigned, so the first expression is always true!
return (Uid >= 0) and (Gid >= 0)
and not Name.empty()
;
Group::Group()
-: Gid (-1)
+: Gid (-1) // FIXME: Gid is unsigned
{
} // eo Group::Group()
{
Name.clear();
Password.clear();
+ // FIXME: Gid is unsigned
Gid= -1;
Members.clear();
} // eo Group::clear()
*/
bool Group::is_valid() const
{
+ // FIXME: Gid is unsigned, so the first expression is always true!
return (Gid >= 0) and not Name.empty();
} // eo Group::is_valid() const
/**
* @brief structure similar to "struct passwd", but more C++ like.
*/
+/// FIXME: Argh, why is this a public struct without accessor functions
struct User
{
std::string Name;
/**
* @brief structure similar to "struct group", but more C++ like.
*/
+/// FIXME: Argh, why is this a public struct without accessor functions
struct Group
{
std::string Name;