-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Another push of FreeBSD-specific changes. #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
33d652d
62f8fee
7a15bf1
44e7080
1de498f
d1f9fa6
cfd3d99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| #! /usr/bin/python | ||
| #!/usr/bin/env python | ||
|
|
||
| from stdglue import * |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| #! /usr/bin/python | ||
| #!/usr/bin/env python | ||
|
|
||
| import remap |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
| # -*- encoding: utf-8 -*- | ||
| # GLADE_VCP | ||
| # Copyright 2010 Chris Morley | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #! /bin/bash | ||
| #!/bin/bash | ||
| # | ||
| # @configure_input@ | ||
| # on @DATE@ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
|
|
||
| import sys | ||
| import os | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
| import hal,time,os,sys | ||
| import traceback | ||
| from configobj import ConfigObj | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
| from pyui import master | ||
| validate = master.keyboard.validate(master.keyboard()) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
| # | ||
| # Visulization model of a Horizontal Boring Mill with quill | ||
| # | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
| # | ||
| # Visulization model of U of Akron's Maho 600C with 2-axis NC table | ||
| # | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
| # | ||
| # Visulization model of Chris's MAX-NC mill, as modified to 5-axis | ||
| # | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
|
|
||
| # | ||
| # Yapps 2 - yet another python parser system | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/python | ||
| #!/usr/bin/env python | ||
|
|
||
| import re | ||
| import sys | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,14 +17,21 @@ | |
| */ | ||
| #ifndef RTAPI_USPACE_HH | ||
| #define RTAPI_USPACE_HH | ||
| #ifdef __linux__ | ||
| #include <sys/fsuid.h> | ||
| #endif | ||
| #include <unistd.h> | ||
| #include <pthread.h> | ||
|
|
||
| struct WithRoot | ||
| { | ||
| #ifdef __linux__ | ||
| WithRoot() { if(!level) setfsuid(geteuid()); level++; } | ||
| ~WithRoot() { --level; if(!level) setfsuid(getuid()); } | ||
| #else | ||
| WithRoot() { if(!level) level++; } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm, this doesn't seem right. WithRoot::WithRoot() needs to elevate file I/O privs to root, so it can't simply do nothing. But in the long run I'd like to get this fixed up so we can abandon use of linux-specific get/setfsuid altogether.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I suspect I've misunderstood the original intention. I think it should be something like: +#else
It's still missing any kind of error reporting, though. |
||
| ~WithRoot() { --level; if(!level) seteuid(getuid()); } | ||
| #endif | ||
| static int level; | ||
| }; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #! /usr/bin/octave --persist | ||
| #!/usr/bin/octave --persist | ||
| load movement.log | ||
| %Assume 1kHz | ||
| t=movement(:,1); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash - | ||
| #!/bin/bash | ||
| set -o nounset # Treat unset variables as an error | ||
|
|
||
| if [ -a $1 ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash - | ||
| #!/bin/bash | ||
| set -o nounset # Treat unset variables as an error | ||
|
|
||
| if [ -a $1 ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash - | ||
| #!/bin/bash | ||
| set -o nounset # Treat unset variables as an error | ||
|
|
||
| if [ -a $1 ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash - | ||
| #!/bin/bash | ||
| set -o nounset # Treat unset variables as an error | ||
|
|
||
| if [ -a $1 ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash - | ||
| #!/bin/bash | ||
| set -o nounset # Treat unset variables as an error | ||
|
|
||
| if [ -a $1 ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash - | ||
| #!/bin/bash | ||
| set -o nounset # Treat unset variables as an error | ||
|
|
||
| if [ -a $1 ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash - | ||
| #!/bin/bash | ||
| set -o nounset # Treat unset variables as an error | ||
|
|
||
| if [ -a $1 ] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this breaks everything on linux uspace 😦
halrun fails like so:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I know it's a patch I suggested .. without testing it...