VirtualBox

Changeset 93381 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 20, 2022 7:14:27 PM (3 years ago)
Author:
vboxsync
Message:

Additions: Linux: DRM IPC: define our own LOGIN_NAME_MAX since this constant might be unavailable in some build environments, bugref:10185.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display-ipc.cpp

    r93380 r93381  
    5050#include <unistd.h>
    5151
     52/** Maximum length of login name in system database. */
     53#define VBOX_LOGIN_NAME_MAX                     (256)
     54
    5255/**
    5356 * Calculate size of TX list entry.
     
    237240            while (*pAllowedGroup->gr_mem)
    238241            {
    239                 if (RTStrNCmp(*pAllowedGroup->gr_mem, UserRecord->pw_name, LOGIN_NAME_MAX) == 0)
     242                if (RTStrNCmp(*pAllowedGroup->gr_mem, UserRecord->pw_name, VBOX_LOGIN_NAME_MAX) == 0)
    240243                    return VINF_SUCCESS;
    241244
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette