mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-30 08:59:39 +00:00
Fix #42
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
__version__ = '1.4.1'
|
||||
__version__ = '1.4.2'
|
||||
|
||||
|
||||
import os
|
||||
|
||||
@@ -142,7 +142,7 @@ class TermWebSocket(Route, tornado.websocket.WebSocketHandler):
|
||||
os.initgroups(self.callee.name, self.callee.gid)
|
||||
os.setgid(self.callee.gid)
|
||||
os.setuid(self.callee.uid)
|
||||
except PermissionError:
|
||||
except:
|
||||
print('The server must be run as root '
|
||||
'if you want to log as different user\n')
|
||||
sys.exit(1)
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user